diff options
author | Dwight <dwight@10gen.com> | 2010-08-26 12:49:04 -0400 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2010-08-26 12:49:04 -0400 |
commit | ea6c0c033e5f3abced63651442b18dab0d359c2e (patch) | |
tree | 418c73fec33563244e5bc14d81fc1fe8268b6d45 | |
parent | e3d6d6da230d725c54dec749fbde327f6bfdb5c9 (diff) | |
download | mongo-ea6c0c033e5f3abced63651442b18dab0d359c2e.tar.gz |
try to make32bitjs smarter
-rwxr-xr-x | jstests/32bit.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/jstests/32bit.js b/jstests/32bit.js index 03b2002e22c..3ea59abfdb4 100755 --- a/jstests/32bit.js +++ b/jstests/32bit.js @@ -77,14 +77,13 @@ function f() { if( Math.random() < 0.0001 ) { print("update cc"); t.update({c:cc},{'$set':{c:1}},false,true); }
if( Math.random() < 0.00001 ) { print("remove e"); t.remove({e:1}); }
}
- if (a == 10000 ) {
+ if (a == 20000 ) {
var delta_ms = (new Date())-start;
- // 2MM / 10000 = 200. 1000ms/sec.
- var eta_secs = delta_ms * (200 / 1000);
- print("eta_secs:" + eta_secs);
- print(delta_ms);
- if( eta_secs > 1800 ) {
- print("machine is slow, stopping early. a:" + a);
+ // 2MM / 20000 = 100. 1000ms/sec.
+ var eta_secs = delta_ms * (100 / 1000);
+ print("32bit.js eta_secs:" + eta_secs);
+ if( eta_secs > 1000 ) {
+ print("32bit.js machine is slow, stopping early. a:" + a);
mydb.dropDatabase();
return;
}
@@ -117,8 +116,8 @@ function f() { }
var h = (new Date()).getHours();
-if( forceSeedToBe || h <= 4 || h >= 22 ) {
+if( forceSeedToBe || h <= 2 || h >= 22 ) {
/* this test is slow, so don't run during the day */
- print("\n32bit.js running - this test is slow only runs at night.");
+ print("\n32bit.js running - this test is slow so only runs at night.");
f();
}
|