boinccmd: show daily xfers using %f to handle > 2 GB

This commit is contained in:
David Anderson 2013-11-25 22:50:13 -08:00
parent b96cf74445
commit 7f12630cd2
1 changed files with 2 additions and 2 deletions

View File

@ -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
);
}
}