*** empty log message ***

svn path=/trunk/boinc/; revision=9540
This commit is contained in:
Walt Gribben 2006-02-23 20:37:36 +00:00
parent 591a4784c8
commit 8c0b5a28b9
2 changed files with 13 additions and 0 deletions

View File

@ -2278,3 +2278,10 @@ Rom 22 Feb 2006
Rom 23 Feb 2006 (HEAD)
- Tag for 5.3.20 release, all platforms
boinc_core_release_5_3_20
Walt 23 Feb 2006
- Bug Fix: last_bytes_xferred was only counting the current bytes transferrred
on uploads.
client/
pers_file_xfer.C

View File

@ -185,6 +185,9 @@ bool PERS_FILE_XFER::poll() {
// copy bytes_xferred for use in GUI
last_bytes_xferred = fxp->bytes_xferred;
if (fxp->is_upload) {
last_bytes_xferred += fxp->file_offset;
}
// don't count suspended periods in total time
//
@ -441,6 +444,9 @@ int PERS_FILE_XFER::write(MIOFILE& fout) {
void PERS_FILE_XFER::suspend() {
if (fxp) {
last_bytes_xferred = fxp->bytes_xferred; // save bytes transferred
if (fxp->is_upload) {
last_bytes_xferred += fxp->file_offset;
}
gstate.file_xfers->remove(fxp); // this removes from http_op_set too
delete fxp;
fxp = 0;