@cryptotaxi247 / netdata-1 / commits / b99c76d78

use monotonic clock for logs flooding detection

This avoids incorrect flood detection on system time changes or system hibernation/suspend. Signed-off-by: Rémi Lefèvre <remi.lefevre@parrot.com>

Rémi Lefèvre committed Dec 9, 2016 at 09:54 UTC b99c76d78e0038c184c76815a68bf8846f574b4c
1 file changed +1 -1
src/log.c
+1 -1
@@ -131,7 +131,7 @@ int error_log_limit(int reset) {
131 return 1;
132 #endif
133
134 - time_t now = now_realtime_sec();
134 + time_t now = now_monotonic_sec();
135 if(!start) start = now;
136
137 if(reset) {