From 5bf735d6e83bc6f154c94cc5b5fec7466c6e1a1e Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Mon, 26 Apr 2021 09:58:36 +0200 Subject: [PATCH] fix status check being wrong for stats --- lib/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/query.js b/lib/query.js index 3b41504..ff9bc2c 100644 --- a/lib/query.js +++ b/lib/query.js @@ -137,7 +137,7 @@ module.exports = class Query extends Readable { } _onvisit (m) { - if (m.status === 1) this.successes++ + if (m.status === 0) this.successes++ else this.errors++ this.inflight--