summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2013-03-25 10:22:49 -0400
committerDan Pasette <dan@10gen.com>2013-03-28 19:11:06 -0400
commit4f26c3137e67ba98b4160c40d95c053b5905a9fe (patch)
tree6dca37c7d95bf01d2887b5904c78125c34b67895
parent6f677a81500cd16e3419b02ce54095bb408905ef (diff)
downloadmongo-4f26c3137e67ba98b4160c40d95c053b5905a9fe.tar.gz
SERVER-9085 fix units in tsToSeconds calculation
-rw-r--r--src/mongo/shell/db.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js
index edfdcbb7ee1..e00d0a56cf2 100644
--- a/src/mongo/shell/db.js
+++ b/src/mongo/shell/db.js
@@ -761,7 +761,7 @@ DB.prototype.killOP = DB.prototype.killOp;
DB.tsToSeconds = function(x){
if ( x.t && x.i )
- return x.t / 1000;
+ return x.t;
return x / 4294967296; // low 32 bits are ordinal #s within a second
}