Skip to content

Commit

Permalink
Fix incorrectly set wall time
Browse files Browse the repository at this point in the history
Wall time should be set to elapsed time, not total scheduled time

Cherry pick of trinodb/trino@7cc7b51
Co-Authored-By: William Shen <willshen@users.noreply.github.com>
  • Loading branch information
aaneja authored and rschlussel committed Nov 8, 2022
1 parent 352c8a2 commit 87c43b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private QueryStatistics createQueryStatistics(QueryInfo queryInfo)
return new QueryStatistics(
ofMillis(queryStats.getTotalCpuTime().toMillis()),
ofMillis(queryStats.getRetriedCpuTime().toMillis()),
ofMillis(queryStats.getTotalScheduledTime().toMillis()),
ofMillis(queryStats.getElapsedTime().toMillis()),
ofMillis(queryStats.getWaitingForPrerequisitesTime().toMillis()),
ofMillis(queryStats.getQueuedTime().toMillis()),
ofMillis(queryStats.getResourceWaitingTime().toMillis()),
Expand Down

0 comments on commit 87c43b2

Please sign in to comment.