mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
break printed runtime into hours:minutes:seconds
This commit is contained in:
parent
825cda9125
commit
4ae8c76959
1 changed files with 8 additions and 2 deletions
|
@ -241,7 +241,7 @@ run_cmds() {
|
|||
PIDS[$KEY]=$!
|
||||
else
|
||||
sleep 2 # make sure it's had some time
|
||||
kill ${PIDS[$KEY]}
|
||||
kill ${PIDS[$KEY]} || true
|
||||
PIDS[$KEY]=0
|
||||
check_game $KEY
|
||||
fi
|
||||
|
@ -268,4 +268,10 @@ run_cmds
|
|||
print_stats
|
||||
|
||||
wait
|
||||
echo "*********$0 finished: $(date) (took $(($(date +%s)-$STARTTIME)) seconds)**************"
|
||||
|
||||
SECONDS=$(($(date +%s)-$STARTTIME))
|
||||
HOURS=$((SECONDS/3600))
|
||||
SECONDS=$((SECONDS%3600))
|
||||
MINUTES=$((SECONDS/60))
|
||||
SECONDS=$((SECONDS%60))
|
||||
echo "*********$0 finished: $(date) (took $HOURS:$MINUTES:$SECONDS)**************"
|
||||
|
|
Loading…
Reference in a new issue