diff options
| author | Tatsuhiro Tsujikawa <404610+tatsuhiro-t@users.noreply.github.com> | 2019-10-12 11:46:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-12 11:46:35 +0900 |
| commit | 9d0a48ac8147c5e56402706d5c17efa8bf6340f2 (patch) | |
| tree | 0513daef22fac260f960b29445e0d6948b945d3d | |
| parent | 902f86f5745857eccab81cb17dd2c27169b1906c (diff) | |
| parent | 6ebdddb9f159e87923736f25900897b3602305f9 (diff) | |
Merge pull request #1487 from aria2/reset-download-upload-length
Reset sessionDownloadLength and sessionUploadLength on download start
| -rw-r--r-- | src/NetStat.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NetStat.cc b/src/NetStat.cc index 3edb238e..58e7a183 100644 --- a/src/NetStat.cc +++ b/src/NetStat.cc @@ -110,6 +110,8 @@ void NetStat::reset() uploadSpeed_.reset(); downloadStartTime_ = global::wallclock(); status_ = IDLE; + sessionDownloadLength_ = 0; + sessionUploadLength_ = 0; } void NetStat::downloadStart() |
