From: hno <> Date: Mon, 30 Jul 2007 21:05:42 +0000 (+0000) Subject: Cosmetic fix of the eventloop dump when there is "now" events in the queue, X-Git-Tag: SQUID_3_0_PRE7~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32f10aa56b2aaee81331b2f4f64f310afbf25309;p=thirdparty%2Fsquid.git Cosmetic fix of the eventloop dump when there is "now" events in the queue, making the test case work again. --- diff --git a/src/event.cc b/src/event.cc index fa6ad79a28..93947595f4 100644 --- a/src/event.cc +++ b/src/event.cc @@ -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; }