diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-12 09:02:24 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-12 09:02:24 +0100 |
commit | d3b396b17602ad71a62cbc2eaf595a1d94579c4a (patch) | |
tree | 3be5e49c5d9081ac3de4cd34b64b47ada23e9a22 /core/start | |
parent | e6c1cacb60010ec75e02cf72acf34278417670fd (diff) |
make state update atomic and clean up some code
Diffstat (limited to 'core/start')
-rwxr-xr-x | core/start | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 + |