From: wessels <> Date: Thu, 12 Sep 1996 22:59:57 +0000 (+0000) Subject: if no timeout handler, show the timeout as '0' X-Git-Tag: SQUID_3_0_PRE1~5821 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f155cbf9a158b044bcf77b4032ae298ff9c41d2;p=thirdparty%2Fsquid.git if no timeout handler, show the timeout as '0' --- diff --git a/src/stat.cc b/src/stat.cc index c7116dc44a..27924e5ec2 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,5 +1,5 @@ /* - * $Id: stat.cc,v 1.61 1996/09/12 16:39:55 wessels Exp $ + * $Id: stat.cc,v 1.62 1996/09/12 16:59:57 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -594,6 +594,8 @@ static void statFiledescriptors(sentry) lft = (lft - squid_curtime) / 60; if (to > 0) to = (to - squid_curtime) / 60; + if (fd_table[i].timeout_handler == NULL) + to = 0; storeAppendPrintf(sentry, "%4d %4d %-21s %s}\n", lft, to,