Skip to content

Commit

Permalink
Reset sessionDownloadLength and sessionUploadLength on download start
Browse files Browse the repository at this point in the history
This commit resets sessionDownloadLength and sessionUploadLength when
a download restarted (including unpause RPC method).

Fixes aria2#1486
  • Loading branch information
tatsuhiro-t committed Oct 12, 2019
1 parent 53b3169 commit 6ebdddb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NetStat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ void NetStat::reset()
uploadSpeed_.reset();
downloadStartTime_ = global::wallclock();
status_ = IDLE;
sessionDownloadLength_ = 0;
sessionUploadLength_ = 0;
}

void NetStat::downloadStart()
Expand Down

0 comments on commit 6ebdddb

Please sign in to comment.