From a2636b4668544bc46c66bc342df8e5f159f4ee5a Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 9 Aug 2010 22:59:54 +0000 Subject: [PATCH] fix uptime graph git-svn-id: http://www.observium.org/svn/observer/trunk@1652 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/device/uptime.inc.php | 4 ---- html/index.php | 3 ++- poller.php | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/html/includes/graphs/device/uptime.inc.php b/html/includes/graphs/device/uptime.inc.php index 69775f1fce..d80b1350f3 100644 --- a/html/includes/graphs/device/uptime.inc.php +++ b/html/includes/graphs/device/uptime.inc.php @@ -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,/"; diff --git a/html/index.php b/html/index.php index ec635ed547..33caf1be67 100755 --- a/html/index.php +++ b/html/index.php @@ -107,7 +107,8 @@ function popUp(URL) { $end = utime(); $run = $end - $start; $gentime = substr($run, 0, 5); - echo '