فهرست منبع

Reset sessionDownloadLength and sessionUploadLength on download start

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

Fixes #1486
Tatsuhiro Tsujikawa 6 سال پیش
والد
کامیت
6ebdddb9f1
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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()