From: Alex Rousskov Date: Sun, 13 Oct 2024 21:33:34 +0000 (+0000) Subject: Maintenance: Fix EventScheduler::timeRemaining() comment (#1916) X-Git-Tag: SQUID_7_0_1~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c33c64545f2317593056fbf31da15cba7389c5a;p=thirdparty%2Fsquid.git Maintenance: Fix EventScheduler::timeRemaining() comment (#1916) --- diff --git a/src/event.cc b/src/event.cc index 59033388ee..66572f3484 100644 --- a/src/event.cc +++ b/src/event.cc @@ -204,7 +204,7 @@ EventScheduler::timeRemaining() const if (tasks->when <= current_dtime) // we are on time or late return 0; // fire the event ASAP - const double diff = tasks->when - current_dtime; // microseconds + const double diff = tasks->when - current_dtime; // seconds // Round UP: If we come back a nanosecond earlier, we will wait again! const int timeLeft = static_cast(ceil(1000*diff)); // milliseconds // Avoid hot idle: A series of rapid select() calls with zero timeout.