]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Print size in KB when warning about too large disk-cache maximum object size.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Mon, 18 Apr 2011 13:33:52 +0000 (17:33 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Mon, 18 Apr 2011 13:33:52 +0000 (17:33 +0400)
src/MemStore.cc

index 0c34e38e26a365b1e00da78b35ff7c2e9d59bc87..c68e7caec584e627a9677175224d0d030a020939 100644 (file)
@@ -49,11 +49,12 @@ MemStore::init() {
         if (max_size == -1) {
             debugs(20, DBG_IMPORTANT, "WARNING: disk-cache maximum object size "
                    "is unlimited but mem-cache maximum object size is " <<
-                   Ipc::Mem::PageSize());
+                   Ipc::Mem::PageSize() / 1024.0 << " KB");
         } else if (max_size > maxObjectSize()) {
             debugs(20, DBG_IMPORTANT, "WARNING: disk-cache maximum object size "
                    "is too large for mem-cache: " <<
-                   Store::Root().maxObjectSize() << " > " << maxObjectSize());
+                   Store::Root().maxObjectSize() / 1024.0 << " KB > " <<
+                   maxObjectSize() / 1024.0 << " KB");
         }
     }