]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug fix: Wrong value displayed for Storage Swap size in mgr::info page
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 21 Jan 2011 14:36:18 +0000 (16:36 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 21 Jan 2011 14:36:18 +0000 (16:36 +0200)
The store_swap_size/stats.store_swap_size holds kilobytes, it is wrong to
divide by 1024 these values.

src/stat.cc

index bcb28cbe72df7adba0e54e3fd0262c2a7990a112..9ad3d0913df700949963ee029673db09827c214b 100644 (file)
@@ -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),