mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibCore: Remove the spammy "too late for a reloading timer" debug log
This commit is contained in:
parent
96c7e83345
commit
e003c0bf06
Notes:
sideshowbarker
2024-07-17 03:25:24 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/e003c0bf06 Pull-request: https://github.com/SerenityOS/serenity/pull/24313 Reviewed-by: https://github.com/Zaggy1024
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user