diff --git a/html/index.php b/html/index.php index b1aaa4165..07ccd8b2e 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 4397f5c11..825256649 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);