mirror of https://github.com/aria2/aria2
Reset sessionDownloadLength and sessionUploadLength on download start
This commit resets sessionDownloadLength and sessionUploadLength when a download restarted (including unpause RPC method). Fixes #1486pull/1487/head
parent
53b3169a22
commit
6ebdddb9f1
|
@ -110,6 +110,8 @@ void NetStat::reset()
|
||||||
uploadSpeed_.reset();
|
uploadSpeed_.reset();
|
||||||
downloadStartTime_ = global::wallclock();
|
downloadStartTime_ = global::wallclock();
|
||||||
status_ = IDLE;
|
status_ = IDLE;
|
||||||
|
sessionDownloadLength_ = 0;
|
||||||
|
sessionUploadLength_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetStat::downloadStart()
|
void NetStat::downloadStart()
|
||||||
|
|
Loading…
Reference in New Issue