From 7f12630cd2675889e81158b3cd51d03b46d9ad46 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 25 Nov 2013 22:50:13 -0800 Subject: [PATCH] boinccmd: show daily xfers using %f to handle > 2 GB --- lib/gui_rpc_client_print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui_rpc_client_print.cpp b/lib/gui_rpc_client_print.cpp index ff8ce55398..49b630c5bf 100644 --- a/lib/gui_rpc_client_print.cpp +++ b/lib/gui_rpc_client_print.cpp @@ -57,8 +57,8 @@ void DAILY_XFER_HISTORY::print() { time_t t = dx.when*86400; struct tm* tm = localtime(&t); strftime(buf, sizeof(buf)-1, "%d-%b-%Y", tm); - printf("%s: %d bytes uploaded, %d bytes downloaded\n", - buf, (int)dx.up, (int)dx.down + printf("%s: %.0f bytes uploaded, %.0f bytes downloaded\n", + buf, dx.up, dx.down ); } }