[rrd-users] Simple question about calculating

JoeSpam8 JoeSpam8 at gmail.com
Sun Feb 20 14:48:35 CET 2011



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.
> 

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.
-- 
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Simple-question-about-calculating-tp6042749p6045726.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list