Don't spam stats reports if the system clock jumps.
This commit is contained in:
parent
497f88fe1c
commit
457761f060
|
@ -810,6 +810,10 @@ void backgroundTasks(void) {
|
||||||
reset_stats(&Modes.stats_periodic);
|
reset_stats(&Modes.stats_periodic);
|
||||||
|
|
||||||
next_stats_display += Modes.stats;
|
next_stats_display += Modes.stats;
|
||||||
|
if (next_stats_display <= now) {
|
||||||
|
/* something has gone wrong, perhaps the system clock jumped */
|
||||||
|
next_stats_display = now + Modes.stats;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue