Hi there, I just wanted to share a patch to rrdtool-1.0.38 which adds a new operator: PREV(vname). It allows, for instance to filter data in many ways. The simplest: NOW=`date +%s` ./rrdtool graph test.png --start `echo "$NOW-86400" | bc` --width 800 --height 600 \ DEF:in=test2.rrd:CPULoad:AVERAGE \ LINE1:in#007700:in \ 'CDEF:prev1=PREV(in)' \ 'CDEF:diff1=in,PREV(in),-,UN,1,in,PREV(in),-,IF' \ 'CDEF:diff2=in,PREV(in),-' \ LINE1:prev1#000077:'in prev' \ LINE1:diff1#770000:'in diff'
It would be great if this patch is to be applied in future releases of rrdtool. Any feedbacks will be welcomed, -- Gonzalo A. Arana Tagle Lider de Proyectos - Ingenieria UOL-Sinectis Florida 537 Piso 6, Buenos Aires, Argentina +54-11-4321-9110 ext 2544 http://www.uolsinectis.com -- Attached file removed by Listar and put at URL below -- -- Type: text/plain -- Size: 3k (3587 bytes) -- URL : http://www.ee.ethz.ch/~slist/pantomime/rrdtool-1.0.38-extension.prev.patch -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-developers WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
