From a86ad2f7b922a4d1345957cafe964b532c58ea23 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 16 Feb 2011 06:15:17 +0000 Subject: [PATCH] fix integer overflow issue in cache size print out --- examples/client_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 6de4cfbf1..86acce9cd 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1662,9 +1662,9 @@ int main(int argc, char* argv[]) , sess_stat.disk_read_queue , (cs.blocks_written - cs.writes) * 100 / cs.blocks_written , cs.blocks_read_hit * 100 / cs.blocks_read - , add_suffix(cs.cache_size * 16 * 1024).c_str() - , add_suffix(cs.read_cache_size * 16 * 1024).c_str() - , add_suffix(cs.total_used_buffers * 16 * 1024).c_str() + , add_suffix(boost::int64_t(cs.cache_size) * 16 * 1024).c_str() + , add_suffix(boost::int64_t(cs.read_cache_size) * 16 * 1024).c_str() + , add_suffix(boost::int64_t(cs.total_used_buffers) * 16 * 1024).c_str() , cs.queued_bytes); out += str;