work for mysql

This commit is contained in:
Tony Murray
2020-06-15 10:50:29 -05:00
parent d1f66bfe97
commit f18e7f5a20

View File

@@ -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'
];
}