mirror of https://github.com/BOINC/boinc.git
boinccmd: show daily xfers using %f to handle > 2 GB
This commit is contained in:
parent
b96cf74445
commit
7f12630cd2
|
@ -57,8 +57,8 @@ void DAILY_XFER_HISTORY::print() {
|
||||||
time_t t = dx.when*86400;
|
time_t t = dx.when*86400;
|
||||||
struct tm* tm = localtime(&t);
|
struct tm* tm = localtime(&t);
|
||||||
strftime(buf, sizeof(buf)-1, "%d-%b-%Y", tm);
|
strftime(buf, sizeof(buf)-1, "%d-%b-%Y", tm);
|
||||||
printf("%s: %d bytes uploaded, %d bytes downloaded\n",
|
printf("%s: %.0f bytes uploaded, %.0f bytes downloaded\n",
|
||||||
buf, (int)dx.up, (int)dx.down
|
buf, dx.up, dx.down
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue