diff --git a/package.json b/package.json index ff92862..32a4696 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ ], "main": "lib/index.js", "author": "Michael Morrison", - "version": "1.0.38", + "version": "1.0.39", "repository": { "type": "git", "url": "https://github.com/sonicsnes/node-gamedig.git" diff --git a/protocols/core.js b/protocols/core.js index f64da51..348b266 100644 --- a/protocols/core.js +++ b/protocols/core.js @@ -70,8 +70,7 @@ class Core extends EventEmitter { if('port_query' in this.options) state.query.port_query = this.options.port_query; state.query.type = this.type; if('pretty' in this) state.query.pretty = this.pretty; - - state.duration = Date.now() - this.startMillis; + state.query.duration = Date.now() - this.startMillis; this.reset(); this.finished = true;