Don't spam stats reports if the system clock jumps.
This commit is contained in:
parent
497f88fe1c
commit
457761f060
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue