aboutsummaryrefslogtreecommitdiff
path: root/core/pause
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-12 09:02:24 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-12 09:02:24 +0100
commitd3b396b17602ad71a62cbc2eaf595a1d94579c4a (patch)
tree3be5e49c5d9081ac3de4cd34b64b47ada23e9a22 /core/pause
parente6c1cacb60010ec75e02cf72acf34278417670fd (diff)
make state update atomic and clean up some code
Diffstat (limited to 'core/pause')
-rwxr-xr-xcore/pause2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pause b/core/pause
index a55bd30..3037c1c 100755
--- a/core/pause
+++ b/core/pause
@@ -6,7 +6,7 @@
[ "$state" != 'running' ] && err "timer is not running"
-time="$("$time - $now" | bc)"
+time="$(echo "$time - $now" | bc)"
state='paused'
save_state