mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Replaced custom utime() function with microtime(true)
This commit is contained in:
@@ -89,7 +89,7 @@ function discover_device($device, $options=null) {
|
||||
// Reset $valid array
|
||||
$attribs = get_dev_attribs($device['device_id']);
|
||||
|
||||
$device_start = utime();
|
||||
$device_start = microtime(true);
|
||||
// Start counting device poll time
|
||||
echo $device['hostname'].' '.$device['device_id'].' '.$device['os'].' ';
|
||||
|
||||
@@ -146,7 +146,7 @@ function discover_device($device, $options=null) {
|
||||
}
|
||||
}
|
||||
|
||||
$device_end = utime();
|
||||
$device_end = microtime(true);
|
||||
$device_run = ($device_end - $device_start);
|
||||
$device_time = substr($device_run, 0, 5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user