+2
-2
@@ -16,3 +16,3 @@ #! /usr/bin/env node | ||
| const base = host + ":" + port; | ||
| const duration = parseInt(process.argv[3]) / 1000 || 0; | ||
| const duration = parseInt(process.argv[3]) * 1000 || 0; | ||
| const start = Date.now(); | ||
@@ -27,3 +27,3 @@ const end = start + duration; | ||
| console.log(contents); | ||
| const fileName = resultsFolder + Date.now() + "_" + path + ".json"; | ||
| const fileName = resultsFolder + Date.now() + "_" + path.replace("/", "") + ".json"; | ||
| fs_1.writeFile(fileName, contents, { encoding: "utf8" }, () => { }); | ||
@@ -30,0 +30,0 @@ if (Date.now() < end) |
+1
-1
| { | ||
| "name": "api-poller", | ||
| "version": "1.5.1", | ||
| "version": "2.0.0", | ||
| "description": "Longpoll the API and log responses to disk", | ||
@@ -5,0 +5,0 @@ "main": "dist/runner", |
4424
0.39%