mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Sorting pollers by name on the pollers/tab=pollers page.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$query = 'SELECT *,UNIX_TIMESTAMP(NOW()) AS `now`, UNIX_TIMESTAMP(`last_polled`) AS `then` FROM `pollers`';
|
||||
$query = 'SELECT *,UNIX_TIMESTAMP(NOW()) AS `now`, UNIX_TIMESTAMP(`last_polled`) AS `then` FROM `pollers` ORDER BY poller_name';
|
||||
|
||||
foreach (dbFetchRows($query) as $poller) {
|
||||
$old = ($poller['now'] - $poller['then']);
|
||||
|
||||
Reference in New Issue
Block a user