]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cosmetic fix of the eventloop dump when there is "now" events in the queue,
authorhno <>
Mon, 30 Jul 2007 21:05:42 +0000 (21:05 +0000)
committerhno <>
Mon, 30 Jul 2007 21:05:42 +0000 (21:05 +0000)
making the test case work again.

src/event.cc

index fa6ad79a280d21de4fd0f0a09a97132f1a4e67be..93947595f40bce5eb2e2bbb5f60340a3bc1ca945 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: event.cc,v 1.48 2007/07/27 04:40:51 rousskov Exp $
+ * $Id: event.cc,v 1.49 2007/07/30 15:05:42 hno Exp $
  *
  * DEBUG: section 41    Event Processing
  * AUTHOR: Henrik Nordstrom
@@ -276,7 +276,7 @@ EventScheduler::dump(StoreEntry * sentry)
 
     while (e != NULL) {
         storeAppendPrintf(sentry, "%s\t%f seconds\t%d\t%s\n",
-                          e->name, e->when - current_dtime, e->weight,
+                          e->name, e->when ? e->when - current_dtime : 0, e->weight,
                   (e->arg && e->cbdata) ? cbdataReferenceValid(e->arg) ? "yes" : "no" : "N/A");
         e = e->next;
     }