summaryrefslogtreecommitdiff
path: root/src/mongo/util/timer.cpp
diff options
context:
space:
mode:
authorApollon Oikonomopoulos <apoikos@debian.org>2016-01-14 00:10:06 +0200
committerApollon Oikonomopoulos <apollon@skroutz.gr>2016-01-14 00:10:06 +0200
commit374e1947abcd3e127a2a613aff73ecffdb9199ea (patch)
treed83973c3c9802450acd5b5e86fe0d4e8e60a3a1b /src/mongo/util/timer.cpp
parent65585c90b12d6523bea75a2aebaae2a2fdf9e641 (diff)
Imported Upstream version 2.6.11upstream/2.6.11
Diffstat (limited to 'src/mongo/util/timer.cpp')
-rw-r--r--src/mongo/util/timer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/timer.cpp b/src/mongo/util/timer.cpp
index 1d399b61c53..45134f0e7b2 100644
--- a/src/mongo/util/timer.cpp
+++ b/src/mongo/util/timer.cpp
@@ -21,7 +21,8 @@
namespace mongo {
- unsigned long long Timer::_countsPerSecond;
+ // default value of 1 so that during startup initialization if referenced no division by zero
+ unsigned long long Timer::_countsPerSecond = 1;
namespace {