mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
Replaced custom utime() function with microtime(true)
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ require 'includes/functions.php';
|
||||
require 'includes/polling/functions.inc.php';
|
||||
require 'includes/alerts.inc.php';
|
||||
|
||||
$poller_start = utime();
|
||||
$poller_start = microtime(true);
|
||||
echo $config['project_name_version']." Poller\n";
|
||||
echo get_last_commit()."\n";
|
||||
|
||||
@@ -128,7 +128,7 @@ foreach (dbFetch($query) as $device) {
|
||||
$polled_devices++;
|
||||
}
|
||||
|
||||
$poller_end = utime();
|
||||
$poller_end = microtime(true);
|
||||
$poller_run = ($poller_end - $poller_start);
|
||||
$poller_time = substr($poller_run, 0, 5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user