]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Show pid number in "normal" helper statistics as well
authorhno <>
Sat, 7 Sep 2002 21:29:08 +0000 (21:29 +0000)
committerhno <>
Sat, 7 Sep 2002 21:29:08 +0000 (21:29 +0000)
(not only on "stateful" helpers)

src/helper.cc

index 196f5fa599000e5cb697f395d7ab2a57fa97bae3..bb27edbde508c9ff5a0c03da028ff6fe1b37aad6 100644 (file)
@@ -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' : ' ',