bye bye debug output, le sigh - also add newline before stats

git-svn-id: http://www.observium.org/svn/observer/trunk@3157 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-05-09 16:36:36 +00:00
parent 790480769b
commit 2773a0b8cf

View File

@@ -74,8 +74,6 @@ if (!$where)
exit;
}
print_r($options);
if (isset($options['d']))
{
echo("DEBUG!\n");
@@ -123,7 +121,8 @@ if ($polled_devices)
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $polled_devices devices polled in $poller_time secs";
if ($debug) { echo("$string\n"); }
echo('MySQL: Cell['.($db_stats['fetchcell']+0).'/'.round($db_stats['fetchcell_sec']+0,2).'s]'.
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]'.