From f97599fd6aa11a175d3dbb552370d50d8ae9e70d Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 8 Apr 2010 22:47:50 +0000 Subject: [PATCH] newline fixes git-svn-id: http://www.observium.org/svn/observer/trunk@1058 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/index.php | 1 - poll-device.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/html/index.php b/html/index.php index b1aaa41652..07ccd8b2ed 100755 --- a/html/index.php +++ b/html/index.php @@ -26,7 +26,6 @@ if($debug) { $month = time() - (31 * 24 * 60 * 60); $year = time() - (365 * 24 * 60 * 60); - # Load the settings for Multi-Tenancy. if (is_array($config['branding'])) { if ($config['branding'][$_SERVER['SERVER_NAME']]) { diff --git a/poll-device.php b/poll-device.php index 4397f5c11d..8252566498 100755 --- a/poll-device.php +++ b/poll-device.php @@ -224,11 +224,11 @@ while ($device = mysql_fetch_array($device_query)) { $poll_update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'"; if($debug) {echo("Updating " . $device['hostname'] . " - $poll_update_query \n");} $poll_update_result = mysql_query($poll_update_query); - if(mysql_affected_rows() == "1") { echo("UPDATED!"); } else { echo("NOT UPDATED!"); } + if(mysql_affected_rows() == "1") { echo("UPDATED!\n"); } else { echo("NOT UPDATED!\n"); } } else { echo("No Changes to " . $device['hostname'] . "\n"); } - + unset($storage_cache); // Clear cache of hrStorage ** MAYBE FIXME? ** $device_end = utime(); $device_run = $device_end - $device_start; $device_time = substr($device_run, 0, 5);