mirror of https://github.com/apache/druid.git
Fix query/node/time metric calculation (#5131)
This commit is contained in:
parent
5f6bdd940b
commit
aafd0373be
|
@ -337,7 +337,7 @@ public class DirectDruidClient<T> implements QueryRunner<T>
|
|||
public ClientResponse<InputStream> done(ClientResponse<InputStream> clientResponse)
|
||||
{
|
||||
long stopTimeNs = System.nanoTime();
|
||||
long nodeTimeNs = stopTimeNs - responseStartTimeNs;
|
||||
long nodeTimeNs = stopTimeNs - requestStartTimeNs;
|
||||
final long nodeTimeMs = TimeUnit.NANOSECONDS.toMillis(nodeTimeNs);
|
||||
log.debug(
|
||||
"Completed queryId[%s] request to url[%s] with %,d bytes returned in %,d millis [%,f b/s].",
|
||||
|
|
Loading…
Reference in New Issue