mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-19292 Change const to var in jstests
Closes #994. Signed-off-by: Max Hirschhorn <max.hirschhorn@mongodb.com>
This commit is contained in:
parent
a81827ad36
commit
a28a5d1b08
@ -22,7 +22,7 @@ var lastTop = getTop();
|
||||
|
||||
// return the number of operations since the last call to diffTop for the specified key
|
||||
function diffTop(key) {
|
||||
const thisTop = getTop();
|
||||
var thisTop = getTop();
|
||||
difference = { time : thisTop[key].time - lastTop[key].time,
|
||||
count : thisTop[key].count - lastTop[key].count }
|
||||
lastTop[key] = thisTop[key];
|
||||
@ -35,7 +35,7 @@ function diffTop(key) {
|
||||
return difference;
|
||||
}
|
||||
|
||||
const numRecords = 100
|
||||
var numRecords = 100;
|
||||
|
||||
// check stats for specified key are as expected
|
||||
var checked = { }
|
||||
|
Loading…
Reference in New Issue
Block a user