mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
add better debugging. version check quiet.
git-svn-id: http://www.observium.org/svn/observer/trunk@2472 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+13
-12
@@ -164,21 +164,22 @@ if ($discovered_devices)
|
||||
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $discovered_devices devices discovered in $proctime secs";
|
||||
if ($debug) echo("$string\n");
|
||||
|
||||
if(!$options['h'] == "new" && $config['version_check'] && !isset($options['q'])) {
|
||||
if(!$options['h'] == "new" && $config['version_check']) {
|
||||
include("includes/versioncheck.inc.php");
|
||||
|
||||
echo('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]');
|
||||
|
||||
echo("\n");
|
||||
|
||||
}
|
||||
|
||||
if(!isset($options['q'])) {
|
||||
echo('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]');
|
||||
echo("\n");
|
||||
}
|
||||
|
||||
|
||||
logfile($string);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user