mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
kill a whole bunch of trailing spaces
git-svn-id: http://www.observium.org/svn/observer/trunk@2516 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+5
-5
@@ -46,7 +46,7 @@ if (isset($options['i']) && $options['i'] && isset($options['n']))
|
||||
(
|
||||
SELECT @rownum := @rownum +1 AS rownum, `device_id`
|
||||
FROM `devices`
|
||||
WHERE `disabled` = 0
|
||||
WHERE `disabled` = 0
|
||||
ORDER BY `device_id` ASC
|
||||
) temp
|
||||
WHERE MOD(temp.rownum, '.mres($options['i']).') = '.mres($options['n']).';';
|
||||
@@ -121,7 +121,7 @@ function poll_device($device, $options) {
|
||||
}
|
||||
echo("\n");
|
||||
|
||||
unset($poll_update); unset($poll_update_query); unset($poll_separator);
|
||||
unset($poll_update); unset($poll_update_query); unset($poll_separator);
|
||||
$poll_update_array = array();
|
||||
|
||||
$host_rrd = $config['rrd_dir'] . "/" . $device['hostname'];
|
||||
@@ -209,13 +209,13 @@ if (!$options['m'])
|
||||
|
||||
$device_end = utime(); $device_run = $device_end - $device_start; $device_time = substr($device_run, 0, 5);
|
||||
|
||||
$update_array['last_polled'] = array('NOW()');
|
||||
$update_array['last_polled'] = array('NOW()');
|
||||
$update_array['last_polled_timetaken'] = $device_time;
|
||||
|
||||
#echo("$device_end - $device_start; $device_time $device_run");
|
||||
echo("Polled in $device_time seconds\n");
|
||||
|
||||
|
||||
|
||||
|
||||
if ($debug) { echo("Updating " . $device['hostname'] . " - ".print_r($update_array)." \n"); }
|
||||
|
||||
@@ -232,7 +232,7 @@ if (!$options['m'])
|
||||
|
||||
$poller_end = utime(); $poller_run = $poller_end - $poller_start; $poller_time = substr($poller_run, 0, 5);
|
||||
|
||||
if ($polled_devices)
|
||||
if ($polled_devices)
|
||||
{
|
||||
dbInsert(array('type' => 'poll', 'doing' => $doing, 'start' => $poller_start, 'duration' => $poller_time, 'devices' => $polled_devices ), 'perf_times');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user