]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Fix EventScheduler::timeRemaining() comment (#1916)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 13 Oct 2024 21:33:34 +0000 (21:33 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 15 Oct 2024 21:39:09 +0000 (21:39 +0000)
src/event.cc

index 59033388eea11665d5535718237fc3db9228c5aa..66572f3484c0f6825e216c10e0c187ce4d271263 100644 (file)
@@ -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<int>(ceil(1000*diff)); // milliseconds
     // Avoid hot idle: A series of rapid select() calls with zero timeout.