mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Put query duration into the unstable query object
This commit is contained in:
parent
e8ca24e206
commit
3a96e00508
2 changed files with 2 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
],
|
],
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"author": "Michael Morrison",
|
"author": "Michael Morrison",
|
||||||
"version": "1.0.38",
|
"version": "1.0.39",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sonicsnes/node-gamedig.git"
|
"url": "https://github.com/sonicsnes/node-gamedig.git"
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,7 @@ class Core extends EventEmitter {
|
||||||
if('port_query' in this.options) state.query.port_query = this.options.port_query;
|
if('port_query' in this.options) state.query.port_query = this.options.port_query;
|
||||||
state.query.type = this.type;
|
state.query.type = this.type;
|
||||||
if('pretty' in this) state.query.pretty = this.pretty;
|
if('pretty' in this) state.query.pretty = this.pretty;
|
||||||
|
state.query.duration = Date.now() - this.startMillis;
|
||||||
state.duration = Date.now() - this.startMillis;
|
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue