summaryrefslogtreecommitdiff
path: root/src/SpeedCalc.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-10-24 00:59:32 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-10-24 01:05:41 +0900
commit46bdaf0e8dae04d223d9b8b65ac80bc0773d8398 (patch)
tree5f485890eb8d58affb7289b92366298b5a6df27d /src/SpeedCalc.h
parentea456001d3f82829944e6cce8b2b76e8ec919b80 (diff)
Made HTTP/FTP download speed limiter more accurate
We have to do the same thing for BitTorrent.
Diffstat (limited to 'src/SpeedCalc.h')
-rw-r--r--src/SpeedCalc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SpeedCalc.h b/src/SpeedCalc.h
index 939206c5..c41574f6 100644
--- a/src/SpeedCalc.h
+++ b/src/SpeedCalc.h
@@ -51,14 +51,14 @@ private:
int64_t accumulatedLength_;
time_t nextInterval_;
- bool isIntervalOver() const;
-
bool isIntervalOver(int64_t milliElapsed) const;
void changeSw();
public:
SpeedCalc();
+ bool isIntervalOver() const;
+
/**
* Returns download/upload speed in byte per sec
*/