mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibCore: Remove the spammy "too late for a reloading timer" debug log
This commit is contained in:
committed by
Andreas Kling
parent
96c7e83345
commit
e003c0bf06
@@ -169,8 +169,6 @@ private:
|
||||
|
||||
class EventLoopTimer final : public EventLoopTimeout {
|
||||
public:
|
||||
static constexpr auto delay_tolerance = Duration::from_milliseconds(5);
|
||||
|
||||
EventLoopTimer() = default;
|
||||
|
||||
void reload(MonotonicTime const& now) { m_fire_time = now + interval; }
|
||||
@@ -185,11 +183,6 @@ public:
|
||||
if (should_reload) {
|
||||
MonotonicTime next_fire_time = m_fire_time + interval;
|
||||
if (next_fire_time <= current_time) {
|
||||
auto delay = current_time - next_fire_time;
|
||||
if (delay >= delay_tolerance && !interval.is_zero()) {
|
||||
auto iterations = delay.to_milliseconds() / max<i64>(1, interval.to_milliseconds()) + 1;
|
||||
dbgln("Can't keep up! Skipping approximately {} iteration(s) of a reloading timer (delayed by {}ms).", iterations, delay.to_milliseconds());
|
||||
}
|
||||
next_fire_time = current_time + interval;
|
||||
}
|
||||
m_fire_time = next_fire_time;
|
||||
|
||||
Reference in New Issue
Block a user