summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-08-31 09:37:31 -0400
committerMartin Bligh <mbligh@mongodb.com>2015-08-31 09:37:31 -0400
commit2b209d7b214bee35b8890f33534254c7a94182f2 (patch)
treef2edd8b4048f7153e52213e8a6c6bb30d2c8abb6 /src/mongo/db/stats
parentccbac2bd346c7bf422d1e13742842919932aafc6 (diff)
downloadmongo-2b209d7b214bee35b8890f33534254c7a94182f2.tar.gz
SERVER-20167: Flip stats counters to be signed
Diffstat (limited to 'src/mongo/db/stats')
-rw-r--r--src/mongo/db/stats/counters.h6
-rw-r--r--src/mongo/db/stats/timer_stats.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/stats/counters.h b/src/mongo/db/stats/counters.h
index c073fb64e7d..717724b8465 100644
--- a/src/mongo/db/stats/counters.h
+++ b/src/mongo/db/stats/counters.h
@@ -100,9 +100,9 @@ public:
void append(BSONObjBuilder& b);
private:
- AtomicUInt64 _bytesIn;
- AtomicUInt64 _bytesOut;
- AtomicUInt64 _requests;
+ AtomicInt64 _bytesIn;
+ AtomicInt64 _bytesOut;
+ AtomicInt64 _requests;
};
extern NetworkCounter networkCounter;
diff --git a/src/mongo/db/stats/timer_stats.h b/src/mongo/db/stats/timer_stats.h
index 6873cab5afc..00dca054c13 100644
--- a/src/mongo/db/stats/timer_stats.h
+++ b/src/mongo/db/stats/timer_stats.h
@@ -55,8 +55,8 @@ public:
}
private:
- AtomicUInt64 _num;
- AtomicUInt64 _totalMillis;
+ AtomicInt64 _num;
+ AtomicInt64 _totalMillis;
};
/**