mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
work for mysql
This commit is contained in:
@@ -75,7 +75,7 @@ class DeviceController extends TableController
|
||||
'hostname' => 'hostname',
|
||||
'hardware' => 'hardware',
|
||||
'os' => 'os',
|
||||
'uptime' => \DB::raw("IF(`status` = 1, `uptime`, `last_polled` - TIME('now'))"),
|
||||
'uptime' => \DB::raw("IF(`status` = 1, `uptime`, `last_polled` - NOW()))"),
|
||||
'location' => 'location'
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user