From cd9e35bc632dd4a4bb6a543266803e34376e7964 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 25 Jan 2007 16:47:29 +0000 Subject: 2007-01-26 Tatsuhiro Tsujikawa * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and EX_INVALID_BT_MESSAGE_ID. Following source files affected. * src/BtAllowedFastMessage.cc: * src/BtBitfieldMessage.cc * src/BtCancelMessage.cc * src/BtChokeMessage.cc * src/BtHaveAllMessage.cc * src/BtHaveMessage.cc * src/BtHaveNoneMessage.cc * src/BtInterestedMessage.cc * src/BtNotInterestedMessage.cc * src/BtPieceMessage.cc * src/BtPortMessage.cc * src/BtRejectMessage.cc * src/BtRequestMessage.cc * src/BtSuggestPieceMessage.cc * src/BtUnchokeMessage.cc * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source files are affected. * src/ChunkChecksumValidator.cc * src/SegmentMan.cc --- src/ConsoleFileAllocationMonitor.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/ConsoleFileAllocationMonitor.h') diff --git a/src/ConsoleFileAllocationMonitor.h b/src/ConsoleFileAllocationMonitor.h index 940adeb7..f1c89eee 100644 --- a/src/ConsoleFileAllocationMonitor.h +++ b/src/ConsoleFileAllocationMonitor.h @@ -40,9 +40,9 @@ class ConsoleFileAllocationMonitor : public FileAllocationMonitor { private: string filename; - uint64_t min; - uint64_t max; - uint64_t current; + int64_t min; + int64_t max; + int64_t current; public: ConsoleFileAllocationMonitor():min(0), max(0), current(0) {} @@ -52,7 +52,7 @@ public: this->filename = filename; } - virtual void setMinValue(const uint64_t& min) { + virtual void setMinValue(const int64_t& min) { if(max < min) { this->min = max; } else { @@ -60,11 +60,11 @@ public: } } - uint64_t getMinValue() const { + int64_t getMinValue() const { return min; } - virtual void setMaxValue(const uint64_t& max) { + virtual void setMaxValue(const int64_t& max) { if(max < min) { this->max = min; } else { @@ -72,11 +72,11 @@ public: } } - uint64_t getMaxValue() const { + int64_t getMaxValue() const { return max; } - virtual void setCurrentValue(const uint64_t& current) { + virtual void setCurrentValue(const int64_t& current) { if(current > max) { this->current = max; } else { @@ -84,7 +84,7 @@ public: } } - uint64_t getCurrentValue() const { + int64_t getCurrentValue() const { return current; } -- cgit