From: Dmitry Kurochkin Date: Mon, 18 Apr 2011 13:33:52 +0000 (+0400) Subject: Print size in KB when warning about too large disk-cache maximum object size. X-Git-Tag: take06~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8424f881bf0ea60b73cf3d193f539a441c891ad5;p=thirdparty%2Fsquid.git Print size in KB when warning about too large disk-cache maximum object size. --- diff --git a/src/MemStore.cc b/src/MemStore.cc index 0c34e38e26..c68e7caec5 100644 --- a/src/MemStore.cc +++ b/src/MemStore.cc @@ -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"); } }