Put query duration into the unstable query object

This commit is contained in:
mmorrison 2018-01-31 00:47:09 -06:00
parent e8ca24e206
commit 3a96e00508
2 changed files with 2 additions and 3 deletions

View file

@ -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;