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/pause | |
parent | e6c1cacb60010ec75e02cf72acf34278417670fd (diff) |
make state update atomic and clean up some code
Diffstat (limited to 'core/pause')
-rwxr-xr-x | core/pause | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ [ "$state" != 'running' ] && err "timer is not running" -time="$("$time - $now" | bc)" +time="$(echo "$time - $now" | bc)" state='paused' save_state |