diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
| commit | 032c7c28083e17bdcfd763b3cf81447b06a07978 (patch) | |
| tree | e5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/PeerStat.h | |
| parent | ca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff) | |
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/PeerStat.h')
| -rw-r--r-- | src/PeerStat.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/PeerStat.h b/src/PeerStat.h index 7e830f91..ce2860f8 100644 --- a/src/PeerStat.h +++ b/src/PeerStat.h @@ -63,43 +63,43 @@ public: /** * Returns current download speed in byte per sec. */ - int32_t calculateDownloadSpeed() { + unsigned int calculateDownloadSpeed() { return downloadSpeed.calculateSpeed(); } - int32_t calculateDownloadSpeed(const struct timeval& now) { + unsigned int calculateDownloadSpeed(const struct timeval& now) { return downloadSpeed.calculateSpeed(now); } - int32_t calculateUploadSpeed() { + unsigned int calculateUploadSpeed() { return uploadSpeed.calculateSpeed(); } - int32_t calculateUploadSpeed(const struct timeval& now) { + unsigned int calculateUploadSpeed(const struct timeval& now) { return uploadSpeed.calculateSpeed(now); } - void updateDownloadLength(int32_t bytes) { + void updateDownloadLength(size_t bytes) { downloadSpeed.update(bytes); } - void updateUploadLength(int32_t bytes) { + void updateUploadLength(size_t bytes) { uploadSpeed.update(bytes); } - int32_t getMaxDownloadSpeed() const { + unsigned int getMaxDownloadSpeed() const { return downloadSpeed.getMaxSpeed(); } - int32_t getMaxUploadSpeed() const { + unsigned int getMaxUploadSpeed() const { return uploadSpeed.getMaxSpeed(); } - int32_t getAvgDownloadSpeed() const { + unsigned int getAvgDownloadSpeed() const { return downloadSpeed.getAvgSpeed(); } - int32_t getAvgUploadSpeed() const { + unsigned int getAvgUploadSpeed() const { return uploadSpeed.getAvgSpeed(); } |
