From: wessels <> Date: Thu, 16 Apr 1998 23:47:15 +0000 (+0000) Subject: show percent of file map bits used X-Git-Tag: SQUID_3_0_PRE1~3500 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ce5d80191270f5e37a9a46007848b2543cfb26b;p=thirdparty%2Fsquid.git show percent of file map bits used --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 1dfec1abe1..94d76a46b2 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.63 1998/04/16 17:18:53 wessels Exp $ + * $Id: store_dir.cc,v 1.64 1998/04/16 17:47:15 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -507,8 +507,9 @@ storeDirStats(StoreEntry * sentry) storeAppendPrintf(sentry, "Current Size: %d KB\n", SD->cur_size); storeAppendPrintf(sentry, "Percent Used: %0.2f%%\n", 100.0 * SD->cur_size / SD->max_size); - storeAppendPrintf(sentry, "Filemap bits in use: %d\n", - SD->map->n_files_in_map); + storeAppendPrintf(sentry, "Filemap bits in use: %d of %d (%d%%)\n", + SD->map->n_files_in_map, SD->map->max_n_files, + percent(SD->map->n_files_in_map, SD->map->max_n_files)); } }