From d3b396b17602ad71a62cbc2eaf595a1d94579c4a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 12 Mar 2024 09:02:24 +0100 Subject: make state update atomic and clean up some code --- core/start | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/start') diff --git a/core/start b/core/start index ae471ad..dbbabc0 100755 --- a/core/start +++ b/core/start @@ -28,8 +28,8 @@ done if [ "$state" = 'running' ] ; then [ $allow_skip -eq 0 ] && err "timer is already running, use -s to skip lap" - time="0.0" lap=$(( $lap + 1 )) + update_time=1 . "$core_path/update" fi @@ -37,3 +37,4 @@ time="$(echo "$now + $time" | bc)" state='running' save_state + -- cgit v1.2.3