From: Christos Tsantilas Date: Fri, 21 Jan 2011 14:36:18 +0000 (+0200) Subject: Bug fix: Wrong value displayed for Storage Swap size in mgr::info page X-Git-Tag: take03^2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=904e213e8323cf65c71dfbfb5482cdd16880ae3c;p=thirdparty%2Fsquid.git Bug fix: Wrong value displayed for Storage Swap size in mgr::info page The store_swap_size/stats.store_swap_size holds kilobytes, it is wrong to divide by 1024 these values. --- diff --git a/src/stat.cc b/src/stat.cc index bcb28cbe72..9ad3d0913d 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -749,7 +749,7 @@ DumpInfo(Mgr::InfoActionData& stats, StoreEntry* sentry) stats.request_hit_disk_ratio60 / fct); storeAppendPrintf(sentry, "\tStorage Swap size:\t%.0f KB\n", - stats.store_swap_size / 1024); + stats.store_swap_size); storeAppendPrintf(sentry, "\tStorage Swap capacity:\t%4.1f%% used, %4.1f%% free\n", Math::doublePercent(stats.store_swap_size, stats.store_swap_max_size),