Skip to content

Commit cdd5bd2

Browse files
committed
Build the full path for the db
1 parent dd4a3ec commit cdd5bd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

performance/time.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Check the processing time for each of the DB operations with load
22
var db = require('../lib/diskdb.js');
33
var fs = require('fs');
4-
db.connect('db', ['articles']);
4+
5+
var path = process.cwd();
6+
db.connect(path + '/performance/db', ['articles']);
57
// remove the articles JSON if exists
68
db.articles.remove();
79
// reload collection
@@ -81,5 +83,4 @@ function getFilesizeInBytes(filename) {
8183
return fileSizeInBytes + ' MB'
8284
}
8385

84-
8586
// run node time.js

0 commit comments

Comments
 (0)