Skip to content

Commit f53e1a2

Browse files
committed
make: fix gaffe in elapsed seconds summary, account for hours
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 8503851 commit f53e1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ finish: $(LOG_DIR)/6_report.log \
636636
$(RESULTS_DIR)/6_final.sdc \
637637
$(GDS_FINAL_FILE)
638638
@printf "%-25s %10s\n" Log "Elapsed seconds"
639-
@grep Elapsed $(abspath $(LOG_DIR))/*.log | awk -F'[:. ]' '{sub(".*+/","",$$1); sub(".log:","",$$1); sub("\\:","",$$1); printf "%-25s %10s\n", $$1, $$6 * 60 +$$7}'
639+
@grep Elapsed $(abspath $(LOG_DIR))/*.log | awk 'match($$0, /[a-zA-Z_0-9/]+\/([a-zA-Z_0-9]+)\.log:Elapsed time: ([0-9]+:)?([0-9]+):([0-9]+)/ , arr) { printf "%-25s %10d\n", arr[1], arr[2]*3600 + arr[3] * 60 + arr[4] }'
640640

641641
# ==============================================================================
642642

0 commit comments

Comments
 (0)