fix windows uptime

git-svn-id: http://www.observium.org/svn/observer/trunk@735 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-28 09:57:19 +00:00
parent 145fd8d973
commit fe4db767c9
+2
View File
@@ -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 \