Skip to content

Commit 3a7b0d3

Browse files
committed
rename test duration var
1 parent 9bd9f9c commit 3a7b0d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function run () {
115115
data_file.test_start = start_time;
116116
data_file.test_finish = data.time;
117117
data_file.averege_requests = avghits;
118-
data_file.ran_for = ran_seconds;
118+
data_file.test_duration_sec = ran_seconds;
119119
data_file.avg_req_time = avgreq;
120120
data_file.url = opts.requests[0];
121121
data_file.random = random;
@@ -138,8 +138,8 @@ function run () {
138138
console.log('Data written to file');
139139
});
140140
}
141-
}, opts.run_for * 1000 + 120000); // Wit for Bad requests for 2 minutes more
142-
}, opts.run_for * 1000);
141+
}, opts.test_duration_sec * 1000 + 120000); // Wit for Bad requests for 2 minutes more
142+
}, opts.test_duration_sec * 1000);
143143
}
144144

145145
function parseHeaders (lines) {

0 commit comments

Comments
 (0)