summaryrefslogtreecommitdiff
path: root/src/ConsoleFileAllocationMonitor.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-01-25 16:47:29 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-01-25 16:47:29 +0000
commitcd9e35bc632dd4a4bb6a543266803e34376e7964 (patch)
tree6042dd0473d1ca7ba845a35fb79745011f7ead7e /src/ConsoleFileAllocationMonitor.h
parent139f46332e0472546cef1dcc31abf98ab0ca93f5 (diff)
2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* 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
Diffstat (limited to 'src/ConsoleFileAllocationMonitor.h')
-rw-r--r--src/ConsoleFileAllocationMonitor.h18
1 files changed, 9 insertions, 9 deletions
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;
}