summaryrefslogtreecommitdiff
path: root/ezbench.sh
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-07-20 14:20:45 +0300
committerMartin Peres <martin.peres@linux.intel.com>2015-07-20 14:20:45 +0300
commit12aa3ee72b932ca989184e147119bf0d80fcb1a7 (patch)
tree150e630dade9d1306aa1da372f9fc2bf3ed73907 /ezbench.sh
parent3c398236d9fba66f2bf12e017cf551b8cab0c141 (diff)
core: switch to the finish date instead of just the execution time
Diffstat (limited to 'ezbench.sh')
-rwxr-xr-xezbench.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ezbench.sh b/ezbench.sh
index eb60e4f..b2c5ccb 100755
--- a/ezbench.sh
+++ b/ezbench.sh
@@ -170,7 +170,8 @@ echo
num_commits=$lastNCommits
[ -n "$stash" ] && num_commits=$(($num_commits + 1))
secs=$(( ($total_round_time * $rounds + $avgBuildTime) * $num_commits))
-printf "Estimated run time: %02dh:%02dm:%02ds\n\n" $(($secs/3600)) $(($secs%3600/60)) $(($secs%60))
+finishDate=$(date +"%y-%m-%d - %T" --date="$secs seconds")
+printf "Estimated finish date: $finishDate (%02dh:%02dm:%02ds)\n\n" $(($secs/3600)) $(($secs%3600/60)) $(($secs%60))
startTime=`date +%s`
# Execute the user-defined pre hook