From: Amos Jeffries Date: Wed, 30 Oct 2013 06:17:30 +0000 (-0600) Subject: CacheMgr: normalize pconn report output X-Git-Tag: SQUID_3_5_0_1~573 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e87619bc9ef4a77a952bac8b54e7d6ee7f2c2356;p=thirdparty%2Fsquid.git CacheMgr: normalize pconn report output - table rows start with TAB - table cell delimiter is TAB - table header cells start with TAB SP --- diff --git a/src/pconn.cc b/src/pconn.cc index 63c13a0115..e6b497f711 100644 --- a/src/pconn.cc +++ b/src/pconn.cc @@ -347,16 +347,15 @@ PconnPool::dumpHist(StoreEntry * e) const storeAppendPrintf(e, "%s persistent connection counts:\n" "\n" - "\treq/\n" - "\tconn count\n" - "\t---- ---------\n", + "\t Requests\t Connection Count\n" + "\t --------\t ----------------\n", descr); for (int i = 0; i < PCONN_HIST_SZ; ++i) { if (hist[i] == 0) continue; - storeAppendPrintf(e, "\t%4d %9d\n", i, hist[i]); + storeAppendPrintf(e, "\t%d\t%d\n", i, hist[i]); } } @@ -368,7 +367,7 @@ PconnPool::dumpHash(StoreEntry *e) const int i = 0; for (hash_link *walker = hid->next; walker; walker = hash_next(hid)) { - storeAppendPrintf(e, "\t item %5d: %s\n", i, (char *)(walker->key)); + storeAppendPrintf(e, "\t item %d:\t%s\n", i, (char *)(walker->key)); ++i; } }