Comparing version 0.0.1 to 0.0.2
@@ -94,3 +94,3 @@ var async = require('async') | ||
++expected; | ||
setTimeout(next, interval) | ||
setTimeout(next, interval) | ||
} | ||
@@ -97,0 +97,0 @@ , function(e) { |
@@ -28,4 +28,1 @@ var format = require('util').format | ||
} | ||
Stats.prototype.toCSV = function() { | ||
return "TBD" | ||
} |
@@ -61,2 +61,3 @@ var LOG = require('log4js').getLogger('lib/steps/req') | ||
rslt.statusCode = r.statusCode; | ||
//TODO: allow hook for applicative errors | ||
} | ||
@@ -69,2 +70,3 @@ | ||
log.info("[a#%s] - runnig onResponse hook", aid); | ||
//TODO - exception safety + gather error when caught exception | ||
reqInfo.onResponse.apply(ctx, [e, r]); | ||
@@ -71,0 +73,0 @@ } |
{ | ||
"name": "logiload", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
16
run.js
@@ -21,2 +21,8 @@ var logger = require('log4js') | ||
} | ||
, i : | ||
{ alias : "interval" | ||
, describe : "interval between start users" | ||
, type : "number" | ||
, default : 20 | ||
} | ||
, l : | ||
@@ -42,5 +48,6 @@ { alias : "log-level" | ||
var runner = require('./lib/runner') | ||
, path = require('path') | ||
, fs = require('fs') | ||
, macro = path.join( process.cwd(), args.macro ) | ||
@@ -56,7 +63,8 @@ ; | ||
macro.total = args.total; | ||
macro.csv = args.csv; | ||
macro.total = args.total; | ||
macro.csv = args.csv; | ||
macro.interval = args.interval | ||
runner(macro, function(e) { | ||
//TODO final stats | ||
log[ e ? "error" : "info" ]("Complete with", e || "SUCCESS"); | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14434
325
3