mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02: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