]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CacheMgr: normalize pconn report output
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Oct 2013 06:17:30 +0000 (00:17 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Oct 2013 06:17:30 +0000 (00:17 -0600)
- table rows start with TAB
- table cell delimiter is TAB
- table header cells start with TAB SP

src/pconn.cc

index 63c13a0115f3e5e00e69e344856fadfde26a019e..e6b497f711c17f30b807e7dd0fd85cb377e4d0cd 100644 (file)
@@ -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;
     }
 }