Skip to content

Commit

Permalink
[Test] Simplify command in StarCCM test
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster committed Dec 11, 2024
1 parent 6e6be9d commit 388526b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ JOBID="$1"
OUTPUT=$(scontrol show jobs ${JOBID} | grep StdOut | cut -d '=' -f 2)
start_time=$(tail -n 250 ${OUTPUT} | grep " 501 " | awk '{print $NF}')
end_time=$(tail -n 250 ${OUTPUT} | grep " 600 " | awk '{print $NF}')
elapsed_time=$(python -c "print(${end_time} - ${start_time})")
elapsed_time=$(echo "$end_time - $start_time" | bc -l)
echo $elapsed_time

0 comments on commit 388526b

Please sign in to comment.