Skip to content

Commit c0718c6

Browse files
author
Alexis Kinsella
committed
Added date to report folder
1 parent 075685b commit c0718c6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

index.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ var Benchmark = require('./lib/benchmark.js'),
1212
moment = require('moment'),
1313
jsonPackage = require('./package.json');
1414

15-
var chance = new Chance();
15+
var startupDate = moment();
16+
17+
var chance = new Chance();
1618

1719
program
1820
.version(jsonPackage != undefined ? jsonPackage.version : "0.0.0")
@@ -60,6 +62,8 @@ if (!program.reportingPath) {
6062
program.reportingPath = process.cwd() + '/reporting';
6163
}
6264

65+
program.reportingPath = path.join(program.reportingPath, startupDate.format("YYYY-MM-DD"));
66+
6367
if (!program.generator) {
6468
program.generator = __dirname + '/lib/generator.js';
6569
}
@@ -92,7 +96,7 @@ var options = {
9296
verbose: program.verbose,
9397
reportingPath: program.reportingPath,
9498
executionUid: program.uid,
95-
executionDate: moment().format("YYYYMMDDHHmmss")
99+
executionDate: startupDate.format("YYYYMMDDHHmmss")
96100
};
97101

98102
if (program.verbose) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "websocket-bench-sockjs",
3-
"version": "0.4.6",
3+
"version": "0.4.7",
44
"description": "Tool for benchmark websocket (socket.io, faye, primus, sockjs)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)