[rrd-users] Simple question about calculating

Tobias Oetiker tobi at oetiker.ch
Sun Feb 20 15:13:20 CET 2011


Joe,

Today JoeSpam8 wrote:

>
>
> JoeSpam8 wrote:
> >
> > Will someone help me understand how I can divide by 1000 and show the full
> > number in the graph? I want to see my real numbers as 1504 and 640 and not
> > as 1.5k and 0.6k.

do not use the %S in your GPRINT line ...

cheers
tobi

> >
>
> No one having a good solution to this one?
>
> This is my graph:
>
> rrdtool graph power_1hour_hour.png \
>   --start -3600 \
>   --step 60 \
>   --width 600 \
>   --height 400 \
>   --x-grid MINUTE:1:MINUTE:5:MINUTE:5:0:%H\:%M \
>   --y-grid 1:40 \
>   --units-length 3 \
>   --title "Last 60 minutes (1 hour interval)" \
>   --vertical-label "Watt usage per hour" \
>   DEF:totalHour=power.rrd:totalHour:LAST \
>   VDEF:totalHour-min=totalHour,MINIMUM \
>   VDEF:totalHour-avg=totalHour,AVERAGE \
>   VDEF:totalHour-max=totalHour,MAXIMUM \
>   VDEF:totalHour-last=totalHour,LAST \
>   COMMENT:" \l" \
>   COMMENT:"                       Current" \
>   COMMENT:"      Minimum" \
>   COMMENT:"    Average" \
>   COMMENT:"      Maxsimum\l" \
>   LINE3:totalHour#000080:"Total usage" \
>   GPRINT:totalHour-last:"%7.4lf%Swatt" \
>   GPRINT:totalHour-min:"%8.4lf%Swatt" \
>   GPRINT:totalHour-avg:"%9.4lf%Swatt" \
>   GPRINT:totalHour-max:"%9.4lf%Swatt\l"
>
> This gives me something like this graph:
>
> http://www.myupload.dk/handleupload/e2303a4d33b751a83873e27608ef720e1298199392
>
> I really would like to see the full real number and not divided into a comma
> kilo-value. Fx. to see 640W or 1540W.
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list