mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add -d option to daily.php to show SQL and fix bug where daily.php does not delete device_perf entries because a unix timestamp (integer) can't be cast to a datetime. MariaDB [librenms]> select * from device_perf where timestamp < UNIX_TIMESTAMP(DATE_SUB(NOW(),INTERVAL '7' DAY)); Empty set, 1 warning (1.20 sec) MariaDB [librenms]> show warnings; +---------+------+----------------------------------------+ | Level | Code | Message | +---------+------+----------------------------------------+ | Warning | 1292 | Incorrect datetime value: '1451944875' | +---------+------+----------------------------------------+ 1 row in set (0.00 sec) MariaDB [librenms]>
4.5 KiB
4.5 KiB