Parcourir la source

Merge pull request #1487 from aria2/reset-download-upload-length

Reset sessionDownloadLength and sessionUploadLength on download start
Tatsuhiro Tsujikawa il y a 6 ans
Parent
commit
9d0a48ac81
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/NetStat.cc

+ 2 - 0
src/NetStat.cc

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