mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
MySQL doesn't support specifying microsecond precision, and MariaDB defaults to zero, so it can be removed to be compatible with both.
This commit is contained in:
parent
dde75439d2
commit
68a970663f
@ -259,7 +259,7 @@ dev_query = ('SELECT device_id, status,
|
||||
' INTERVAL last_polled_timetaken SECOND '
|
||||
' ), '
|
||||
' INTERVAL {0} SECOND) '
|
||||
' AS DATETIME(0) '
|
||||
' AS DATETIME '
|
||||
') AS next_poll, '
|
||||
'CAST( '
|
||||
' DATE_ADD( '
|
||||
@ -268,7 +268,7 @@ dev_query = ('SELECT device_id, status,
|
||||
' INTERVAL last_discovered_timetaken SECOND '
|
||||
' ), '
|
||||
' INTERVAL {1} SECOND) '
|
||||
' AS DATETIME(0) '
|
||||
' AS DATETIME '
|
||||
') as next_discovery '
|
||||
'FROM devices WHERE '
|
||||
'disabled = 0 '
|
||||
|
Loading…
Reference in New Issue
Block a user