Skip to content

Commit

Permalink
Add start time to .last_run_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
urosgruber committed Feb 8, 2024
1 parent 9ac5a5f commit 4252ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/pot/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,9 @@ _js_start()

wait "$_wait_pid"
_exit_code=$?
_epoch=$(date +%s)

echo "{ \"ExitCode\": $_exit_code }" > "$_confdir/.last_run_stats"
echo "{ \"ExitCode\": $_exit_code, \"StartedAt\": $_epoch }" > "$_confdir/.last_run_stats"

if [ "$_persist" = "NO" ]; then
rm -f "${POT_TMP:-/tmp}/pot_main_pid_${_pname}"
Expand Down

0 comments on commit 4252ed6

Please sign in to comment.