fix uptime graph

git-svn-id: http://www.observium.org/svn/observer/trunk@1652 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-09 22:59:54 +00:00
parent a836426f55
commit a2636b4668
3 changed files with 3 additions and 6 deletions

View File

@@ -5,11 +5,7 @@ $scale_min = "0";
include("includes/graphs/common.inc.php");
$device = device_by_id_cache($id);
if (is_file($config['rrd_dir'] . "/" . $device['hostname'] . "/hrSystem.rrd")) {
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/hrSystem.rrd";
} else {
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/uptime.rrd";
}
$rrd_options .= " DEF:uptime=$rrd_filename:uptime:AVERAGE";
$rrd_options .= " CDEF:cuptime=uptime,86400,/";