Browse Source

Fixed buggy rrdtool theme.

pull/40/head
Savetheinternet 13 years ago
parent
commit
257e0cf646
  1. 16
      templates/themes/rrdtool/theme.php

16
templates/themes/rrdtool/theme.php

@ -38,24 +38,24 @@
// Create graph // Create graph
if(!rrd_create($file, Array( if(!rrd_create($file, Array(
'-s ' . $this->interval, '-s ' . $this->interval,
'DS:posts:GAUGE:' . ($this->interval*2) . ':0:10000', 'DS:posts:GAUGE:' . ($this->interval) . ':0:10000',
'RRA:MIN:0:1:' . (3600/$this->interval), // hour 'RRA:MIN:0:1:' . (3600/$this->interval), // hour
'RRA:MIN:0:1:' . (86400/$this->interval), // day 'RRA:MIN:0:1:' . (86400/$this->interval), // day
'RRA:MIN:0:1:' . (604800/$this->interval), // week 'RRA:MIN:0:30:' . (604800/$this->interval), // week
'RRA:MIN:0:60:' . (2592000/$this->interval), // month 'RRA:MIN:0:120:' . (2592000/$this->interval), // month
'RRA:MIN:0:1440:' . (31536000/$this->interval), // year 'RRA:MIN:0:1440:' . (31536000/$this->interval), // year
'RRA:AVERAGE:0:1:' . (3600/$this->interval), // hour 'RRA:AVERAGE:0:1:' . (3600/$this->interval), // hour
'RRA:AVERAGE:0:1:' . (86400/$this->interval), // day 'RRA:AVERAGE:0:1:' . (86400/$this->interval), // day
'RRA:AVERAGE:0:1:' . (604800/$this->interval), // week 'RRA:AVERAGE:0:60:' . (604800/$this->interval), // week
'RRA:AVERAGE:0:60:' . (2592000/$this->interval), // month 'RRA:AVERAGE:0:120:' . (2592000/$this->interval), // month
'RRA:AVERAGE:0:1440:' . (31536000/$this->interval), // year 'RRA:AVERAGE:0:1440:' . (31536000/$this->interval), // year
'RRA:MAX:0:1:' . (3600/$this->interval), // hour 'RRA:MAX:0:1:' . (3600/$this->interval), // hour
'RRA:MAX:0:1:' . (86400/$this->interval), // day 'RRA:MAX:0:1:' . (86400/$this->interval), // day
'RRA:MAX:0:1:' . (604800/$this->interval), // week 'RRA:MAX:0:30:' . (604800/$this->interval), // week
'RRA:MAX:0:60:' . (2592000/$this->interval), // month 'RRA:MAX:0:120:' . (2592000/$this->interval), // month
'RRA:MAX:0:1440:' . (31536000/$this->interval), // year 'RRA:MAX:0:1440:' . (31536000/$this->interval), // year
))) )))
error('RRDtool failed: ' . htmlentities(rrd_error())); error('RRDtool failed: ' . htmlentities(rrd_error()));
@ -170,4 +170,4 @@
} }
}; };
?> ?>

Loading…
Cancel
Save