diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-08 21:38:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-09 21:39:43 +0900 |
| commit | f0bcfa822e848b7bf89ec7a16407159187283a48 (patch) | |
| tree | 9e0aa8a06789925a02675dfb8173ad4931604d9b /src/ServerStat.h | |
| parent | b97a7c8ecf410daaac12346c91591d15772f3c7f (diff) | |
Use int instead of unsigned int where unsigned int is not needed.
Diffstat (limited to 'src/ServerStat.h')
| -rw-r--r-- | src/ServerStat.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ServerStat.h b/src/ServerStat.h index c4288d1b..357af0eb 100644 --- a/src/ServerStat.h +++ b/src/ServerStat.h @@ -79,40 +79,40 @@ public: // This method doesn't update _lastUpdate. void setLastUpdated(const Time& time); - unsigned int getDownloadSpeed() const + int getDownloadSpeed() const { return downloadSpeed_; } // update download speed and update lastUpdated_ - void updateDownloadSpeed(unsigned int downloadSpeed); + void updateDownloadSpeed(int downloadSpeed); // set download speed. This method doesn't update _lastUpdate. - void setDownloadSpeed(unsigned int downloadSpeed); + void setDownloadSpeed(int downloadSpeed); - unsigned int getSingleConnectionAvgSpeed() const + int getSingleConnectionAvgSpeed() const { return singleConnectionAvgSpeed_; } - void updateSingleConnectionAvgSpeed(unsigned int downloadSpeed); - void setSingleConnectionAvgSpeed(unsigned int singleConnectionAvgSpeed); + void updateSingleConnectionAvgSpeed(int downloadSpeed); + void setSingleConnectionAvgSpeed(int singleConnectionAvgSpeed); - unsigned int getMultiConnectionAvgSpeed() const + int getMultiConnectionAvgSpeed() const { return multiConnectionAvgSpeed_; } - void updateMultiConnectionAvgSpeed(unsigned int downloadSpeed); - void setMultiConnectionAvgSpeed(unsigned int singleConnectionAvgSpeed); + void updateMultiConnectionAvgSpeed(int downloadSpeed); + void setMultiConnectionAvgSpeed(int singleConnectionAvgSpeed); - unsigned int getCounter() const + int getCounter() const { return counter_; } void increaseCounter(); - void setCounter(unsigned int value); + void setCounter(int value); // This method doesn't update _lastUpdate. void setStatus(STATUS status); @@ -153,13 +153,13 @@ private: std::string protocol_; - unsigned int downloadSpeed_; + int downloadSpeed_; - unsigned int singleConnectionAvgSpeed_; + int singleConnectionAvgSpeed_; - unsigned int multiConnectionAvgSpeed_; + int multiConnectionAvgSpeed_; - unsigned int counter_; + int counter_; STATUS status_; |
