From 5246ba1008d4e5d0edd82c37a791c82574940e1e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 22:46:58 -0400 Subject: src/garbage.sh: Prefix "static" function with "_" --- diff --git a/src/garbage.sh b/src/garbage.sh index 575cc5d..7d4fac5 100644 --- a/src/garbage.sh +++ b/src/garbage.sh @@ -20,7 +20,7 @@ # along with the ProteanOS Archive Manager. If not, see # . -time() +_time() { # Based on code from by Rich # Felker, with whitespace added for readability. @@ -48,7 +48,7 @@ collect_garbage() info_v "$(get_msg 'collecting_garbage')" - cur_time=$(time) + cur_time=$(_time) for garbage in "${base_dir}/.db/garbage/"*; do if [ ! -f "${garbage}" ]; then @@ -81,7 +81,7 @@ mark_pool_garbage() info_v "$(get_msg 'marking_garbage_file')" "${file}" - time=$(time) + time=$(_time) time=$((${time} + ${conf_pool_gc_delay})) mkdir -p "${base_dir}/.db/garbage" -- cgit v0.9.1