mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sorting pollers by name on the pollers/tab=pollers page.
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?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) {
|
foreach (dbFetchRows($query) as $poller) {
|
||||||
$old = ($poller['now'] - $poller['then']);
|
$old = ($poller['now'] - $poller['then']);
|
||||||
|
Reference in New Issue
Block a user