summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats/snapshots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/stats/snapshots.cpp')
-rw-r--r--src/mongo/db/stats/snapshots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/stats/snapshots.cpp b/src/mongo/db/stats/snapshots.cpp
index 74efaf81994..ecd392decea 100644
--- a/src/mongo/db/stats/snapshots.cpp
+++ b/src/mongo/db/stats/snapshots.cpp
@@ -127,7 +127,7 @@ namespace mongo {
try {
const SnapshotData* s = statsSnapshots.takeSnapshot();
- if ( prev && cmdLine.cpu ) {
+ if (prev && serverGlobalParams.cpu) {
unsigned long long elapsed = s->_created - prev->_created;
SnapshotDelta d( *prev , *s );
log() << "cpu: elapsed:" << (elapsed/1000) <<" writelock: " << (int)(100*d.percentWriteLocked()) << "%" << endl;