diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-06 08:29:53 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-06 08:29:53 +0000 |
| commit | 8d09b069e2b709d8657f5fdbcf2a933515545f39 (patch) | |
| tree | 431bf39e4ce0a90c7fb4804297562c0c4c93c478 /src/PeerStat.h | |
| parent | 7637fd76a27d8a97cd32d7597d5afb3361fe0d28 (diff) | |
2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added Time global::wallclock to cache "current time" to reduce the
call gettimeofday(). Global variables are now in namespace global.
* src/AbstractCommand.cc
* src/ActivePeerConnectionCommand.cc
* src/AdaptiveURISelector.cc
* src/BtLeecherStateChoke.cc
* src/BtLeecherStateChoke.h
* src/BtSeederStateChoke.cc
* src/BtSeederStateChoke.h
* src/BtStopDownloadCommand.cc
* src/ConsoleStatCalc.cc
* src/DHTBucket.cc
* src/DHTGetPeersCommand.cc
* src/DHTMessageTrackerEntry.cc
* src/DHTNode.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceStorage.cc
* src/DHTSetup.cc
* src/DefaultBtAnnounce.cc
* src/DefaultBtInteractive.cc
* src/DefaultBtMessageDispatcher.cc
* src/DefaultPeerStorage.cc
* src/DefaultPieceStorage.cc
* src/DownloadCommand.cc
* src/DownloadEngine.cc
* src/FileEntry.cc
* src/HttpServerBodyCommand.cc
* src/HttpServerCommand.cc
* src/HttpServerResponseCommand.cc
* src/LpdMessageDispatcher.cc
* src/MultiUrlRequestInfo.cc
* src/Peer.cc
* src/Peer.h
* src/PeerAbstractCommand.cc
* src/PeerStat.h
* src/RequestSlot.cc
* src/RequestSlot.h
* src/SegmentMan.cc
* src/ServerStatMan.cc
* src/SleepCommand.cc
* src/SpeedCalc.cc
* src/SpeedCalc.h
* src/TimeA2.cc
* src/TimeA2.h
* src/TimeBasedCommand.cc
* src/TimeSeedCriteria.h
* src/UTMetadataRequestTracker.h
* src/UTPexExtensionMessage.cc
* src/wallclock.h
Diffstat (limited to 'src/PeerStat.h')
| -rw-r--r-- | src/PeerStat.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/PeerStat.h b/src/PeerStat.h index 71e89925..11d2119d 100644 --- a/src/PeerStat.h +++ b/src/PeerStat.h @@ -82,8 +82,6 @@ public: _sessionDownloadLength(0), _sessionUploadLength(0) {} - ~PeerStat() {} - /** * Returns current download speed in byte per sec. */ @@ -91,10 +89,6 @@ public: return downloadSpeed.calculateSpeed(); } - unsigned int calculateDownloadSpeed(const struct timeval& now) { - return downloadSpeed.calculateSpeed(now); - } - unsigned int calculateAvgDownloadSpeed() { _avgDownloadSpeed = downloadSpeed.calculateAvgSpeed(); return _avgDownloadSpeed; @@ -104,10 +98,6 @@ public: return uploadSpeed.calculateSpeed(); } - unsigned int calculateUploadSpeed(const struct timeval& now) { - return uploadSpeed.calculateSpeed(now); - } - unsigned int calculateAvgUploadSpeed() { _avgUploadSpeed = uploadSpeed.calculateAvgSpeed(); return _avgUploadSpeed; |
