Fix query/node/time metric calculation (#5131)

This commit is contained in:
Gleb Smirnov 2017-12-01 20:39:04 +03:00 committed by Gian Merlino
parent 5f6bdd940b
commit aafd0373be
1 changed files with 1 additions and 1 deletions

View File

@ -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].",