mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
Rebased
This commit is contained in:
+3
-4
@@ -22,7 +22,8 @@ require 'includes/polling/functions.inc.php';
|
||||
require 'includes/alerts.inc.php';
|
||||
|
||||
$poller_start = utime();
|
||||
echo $config['project_name_version']." Poller\n\n";
|
||||
echo $config['project_name_version']." Poller\n";
|
||||
echo get_last_commit()."\n";
|
||||
|
||||
$options = getopt('h:m:i:n:r::d::a::f::');
|
||||
|
||||
@@ -133,9 +134,7 @@ if ($polled_devices) {
|
||||
}
|
||||
|
||||
$string = $argv[0]." $doing ".date($config['dateformat']['compact'])." - $polled_devices devices polled in $poller_time secs";
|
||||
if ($debug) {
|
||||
echo "$string\n";
|
||||
}
|
||||
d_echo("$string\n");
|
||||
|
||||
echo ("\n".'MySQL: Cell['.($db_stats['fetchcell'] + 0).'/'.round(($db_stats['fetchcell_sec'] + 0), 2).'s]'.' Row['.($db_stats['fetchrow'] + 0).'/'.round(($db_stats['fetchrow_sec'] + 0), 2).'s]'.' Rows['.($db_stats['fetchrows'] + 0).'/'.round(($db_stats['fetchrows_sec'] + 0), 2).'s]'.' Column['.($db_stats['fetchcol'] + 0).'/'.round(($db_stats['fetchcol_sec'] + 0), 2).'s]'.' Update['.($db_stats['update'] + 0).'/'.round(($db_stats['update_sec'] + 0), 2).'s]'.' Insert['.($db_stats['insert'] + 0).'/'.round(($db_stats['insert_sec'] + 0), 2).'s]'.' Delete['.($db_stats['delete'] + 0).'/'.round(($db_stats['delete_sec'] + 0), 2).'s]');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user