summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats/counters.cpp
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-08-31 10:28:50 -0400
committerMartin Bligh <mbligh@mongodb.com>2015-08-31 10:28:50 -0400
commit518118bfce4da06e6c26063e125f90e30a1b3baa (patch)
tree9ba3d467dd0d671cbda84548d05887ed96c0b2fe /src/mongo/db/stats/counters.cpp
parent2b209d7b214bee35b8890f33534254c7a94182f2 (diff)
downloadmongo-518118bfce4da06e6c26063e125f90e30a1b3baa.tar.gz
SERVER-20167: Flip stats counters to be signed (forgot const type)
Diffstat (limited to 'src/mongo/db/stats/counters.cpp')
-rw-r--r--src/mongo/db/stats/counters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/stats/counters.cpp b/src/mongo/db/stats/counters.cpp
index 7a906861482..7a7c7d7dd1f 100644
--- a/src/mongo/db/stats/counters.cpp
+++ b/src/mongo/db/stats/counters.cpp
@@ -136,7 +136,7 @@ BSONObj OpCounters::getObj() const {
}
void NetworkCounter::hit(long long bytesIn, long long bytesOut) {
- const uint64_t MAX = 1ULL << 60;
+ const int64_t MAX = 1ULL << 60;
// don't care about the race as its just a counter
bool overflow = _bytesIn.loadRelaxed() > MAX || _bytesOut.loadRelaxed() > MAX;