Skip to content

Commit

Permalink
Fix timing stats in output of EXPLAIN ANALYZE
Browse files Browse the repository at this point in the history
CPU and scheduled time were swapped
  • Loading branch information
martint committed Jul 25, 2019
1 parent 07f78b8 commit 48e600e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -164,11 +164,11 @@ private PlanPrinter(
this.tableInfoSupplier = tableInfoSupplier;
this.valuePrinter = valuePrinter;

Optional<Duration> totalCpuTime = stats.map(s -> new Duration(s.values().stream()
Optional<Duration> totalScheduledTime = stats.map(s -> new Duration(s.values().stream()
.mapToLong(planNode -> planNode.getPlanNodeScheduledTime().toMillis())
.sum(), MILLISECONDS));

Optional<Duration> totalScheduledTime = stats.map(s -> new Duration(s.values().stream()
Optional<Duration> totalCpuTime = stats.map(s -> new Duration(s.values().stream()
.mapToLong(planNode -> planNode.getPlanNodeCpuTime().toMillis())
.sum(), MILLISECONDS));

Expand Down

0 comments on commit 48e600e

Please sign in to comment.