aboutsummaryrefslogtreecommitdiffstats
path: root/run
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-12-30 22:27:33 +0000
committerTomasz Kramkowski <tk@the-tk.com>2020-12-30 22:27:33 +0000
commitc560f0f02ddf51a3ce38a945b48ecf49a138e38d (patch)
treed737adbd10e3506df148f8b654c1dc5271f5c6e2 /run
parent2709a996bbce438f4ca94256441b705fe9e534f6 (diff)
downloadbattd-c560f0f02ddf51a3ce38a945b48ecf49a138e38d.tar.gz
battd-c560f0f02ddf51a3ce38a945b48ecf49a138e38d.tar.xz
battd-c560f0f02ddf51a3ce38a945b48ecf49a138e38d.zip
Simpler and more flexible interval handling
Diffstat (limited to 'run')
-rwxr-xr-xrun6
1 files changed, 1 insertions, 5 deletions
diff --git a/run b/run
index 784c89c..03f7d08 100755
--- a/run
+++ b/run
@@ -9,11 +9,7 @@ check
laststatus=$?
while :; do
- if interval; then
- sleep "${long_interval-300}"
- else
- sleep "${short_interval-30}"
- fi
+ interval
check
status=$?
if [ "$laststatus" -eq 0 ] && [ "$status" -ne 0 ]; then