From: hno <> Date: Sat, 7 Sep 2002 21:29:08 +0000 (+0000) Subject: Show pid number in "normal" helper statistics as well X-Git-Tag: SQUID_3_0_PRE1~774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09c1ece1f2e8e4a2916fd4b8a612619a66329bc2;p=thirdparty%2Fsquid.git Show pid number in "normal" helper statistics as well (not only on "stateful" helpers) --- diff --git a/src/helper.cc b/src/helper.cc index 196f5fa599..bb27edbde5 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -1,6 +1,6 @@ /* - * $Id: helper.cc,v 1.42 2002/08/14 07:46:43 hno Exp $ + * $Id: helper.cc,v 1.43 2002/09/07 15:29:08 hno Exp $ * * DEBUG: section 84 Helper process maintenance * AUTHOR: Harvest Derived? @@ -413,9 +413,10 @@ helperStats(StoreEntry * sentry, helper * hlp) storeAppendPrintf(sentry, "avg service time: %.2f msec\n", (double) hlp->stats.avg_svc_time / 1000.0); storeAppendPrintf(sentry, "\n"); - storeAppendPrintf(sentry, "%7s\t%7s\t%11s\t%s\t%7s\t%7s\t%7s\n", + storeAppendPrintf(sentry, "%7s\t%7s\t%7s\t%11s\t%s\t%7s\t%7s\t%7s\n", "#", "FD", + "PID" "# Requests", "Flags", "Time", @@ -425,9 +426,10 @@ helperStats(StoreEntry * sentry, helper * hlp) srv = link->data; tt = 0.001 * tvSubMsec(srv->dispatch_time, srv->flags.busy ? current_time : srv->answer_time); - storeAppendPrintf(sentry, "%7d\t%7d\t%11d\t%c%c%c%c\t%7.3f\t%7d\t%s\n", + storeAppendPrintf(sentry, "%7d\t%7d\t%7d\t%11d\t%c%c%c%c\t%7.3f\t%7d\t%s\n", srv->index + 1, srv->rfd, + src->pid, srv->stats.uses, srv->flags.alive ? 'A' : ' ', srv->flags.busy ? 'B' : ' ',