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/pause | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/pause') 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 -- cgit v1.2.3