Reset sessionDownloadLength and sessionUploadLength on download start

This commit resets sessionDownloadLength and sessionUploadLength when
a download restarted (including unpause RPC method).

Fixes #1486
pull/1487/head
Tatsuhiro Tsujikawa 2019-10-12 10:30:18 +09:00
parent 53b3169a22
commit 6ebdddb9f1
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ void NetStat::reset()
uploadSpeed_.reset();
downloadStartTime_ = global::wallclock();
status_ = IDLE;
sessionDownloadLength_ = 0;
sessionUploadLength_ = 0;
}
void NetStat::downloadStart()