newline fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@1058 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-04-08 22:47:50 +00:00
parent 3bf75f8728
commit f97599fd6a
2 changed files with 2 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ if($debug) {
$month = time() - (31 * 24 * 60 * 60); $month = time() - (31 * 24 * 60 * 60);
$year = time() - (365 * 24 * 60 * 60); $year = time() - (365 * 24 * 60 * 60);
# Load the settings for Multi-Tenancy. # Load the settings for Multi-Tenancy.
if (is_array($config['branding'])) { if (is_array($config['branding'])) {
if ($config['branding'][$_SERVER['SERVER_NAME']]) { if ($config['branding'][$_SERVER['SERVER_NAME']]) {

View File

@@ -224,11 +224,11 @@ while ($device = mysql_fetch_array($device_query)) {
$poll_update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'"; $poll_update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'";
if($debug) {echo("Updating " . $device['hostname'] . " - $poll_update_query \n");} if($debug) {echo("Updating " . $device['hostname'] . " - $poll_update_query \n");}
$poll_update_result = mysql_query($poll_update_query); $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 { } else {
echo("No Changes to " . $device['hostname'] . "\n"); echo("No Changes to " . $device['hostname'] . "\n");
} }
unset($storage_cache); // Clear cache of hrStorage ** MAYBE FIXME? ** 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); $device_end = utime(); $device_run = $device_end - $device_start; $device_time = substr($device_run, 0, 5);