summaryrefslogtreecommitdiff
path: root/src/Peer.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-08 21:38:00 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-12-09 21:39:43 +0900
commitf0bcfa822e848b7bf89ec7a16407159187283a48 (patch)
tree9e0aa8a06789925a02675dfb8173ad4931604d9b /src/Peer.cc
parentb97a7c8ecf410daaac12346c91591d15772f3c7f (diff)
Use int instead of unsigned int where unsigned int is not needed.
Diffstat (limited to 'src/Peer.cc')
-rw-r--r--src/Peer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Peer.cc b/src/Peer.cc
index e31ae10a..2621b929 100644
--- a/src/Peer.cc
+++ b/src/Peer.cc
@@ -216,13 +216,13 @@ void Peer::updateBitfield(size_t index, int operation) {
updateSeeder();
}
-unsigned int Peer::calculateUploadSpeed()
+int Peer::calculateUploadSpeed()
{
assert(res_);
return res_->getPeerStat().calculateUploadSpeed();
}
-unsigned int Peer::calculateDownloadSpeed()
+int Peer::calculateDownloadSpeed()
{
assert(res_);
return res_->getPeerStat().calculateDownloadSpeed();