Skip to content

Commit 5b035a1

Browse files
authored
Merge pull request #722 from Pinata-Consulting/make-print-elapsed-seconds-summary-account-for-hours
make: fix gaffe in elapsed seconds summary, account for hours
2 parents 56e4945 + f53e1a2 commit 5b035a1

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
@@ -637,7 +637,7 @@ finish: $(LOG_DIR)/6_report.log \
637637
$(RESULTS_DIR)/6_final.sdc \
638638
$(GDS_FINAL_FILE)
639639
@printf "%-25s %10s\n" Log "Elapsed seconds"
640-
@grep Elapsed $(abspath $(LOG_DIR))/*.log | awk -F'[:. ]' '{sub(".*+/","",$$1); sub(".log:","",$$1); sub("\\:","",$$1); printf "%-25s %10s\n", $$1, $$6 * 60 +$$7}'
640+
@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] }'
641641

642642
# ==============================================================================
643643

0 commit comments

Comments
 (0)