From fe4db767c976185260f4876328066d584842e16f Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 28 Jan 2010 09:57:19 +0000 Subject: [PATCH] fix windows uptime git-svn-id: http://www.observium.org/svn/observer/trunk@735 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/hr-mib.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/polling/hr-mib.inc.php b/includes/polling/hr-mib.inc.php index 003c6a22a0..503995838e 100755 --- a/includes/polling/hr-mib.inc.php +++ b/includes/polling/hr-mib.inc.php @@ -13,6 +13,8 @@ list($days, $hours, $mins, $secs) = explode(":", $hrSystemUptime); list($secs, $microsecs) = explode(".", $secs); $uptime = $secs + ($mins * 60) + ($hours * 60 * 60) + ($days * 24 * 60 * 60); +if ($device['os'] == "windows") { $uptime /= 10; } + if (!is_file($hrSystem_rrd)) { shell_exec($config['rrdtool'] . " create $hrSystem_rrd \ --step 300 \