mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix windows uptime
git-svn-id: http://www.observium.org/svn/observer/trunk@735 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user