summaryrefslogtreecommitdiffstats
path: root/src/garbage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/garbage.sh')
-rw-r--r--src/garbage.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garbage.sh b/src/garbage.sh
index 556f3db..4a47b4e 100644
--- a/src/garbage.sh
+++ b/src/garbage.sh
@@ -64,7 +64,7 @@ collect_garbage()
while [ ${dirs} -gt 0 ]; do
file="${file%/*}"
try_rmdir "${base_dir}/${file}"
- dirs=$(($dirs - 1))
+ dirs=$((${dirs} - 1))
done
done <"${garbage}"
rm -f "${garbage}"
@@ -81,7 +81,7 @@ mark_pool_garbage()
info_v "$(get_msg 'marking_garbage_file')" "${file}"
time=$(time)
- time=$(($time + $conf_pool_gc_delay))
+ time=$((${time} + ${conf_pool_gc_delay}))
mkdir -p "${base_dir}/.db/garbage"
printf '2 %s\n' "${file}" >>"${base_dir}/.db/garbage/${time}"