diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-13 22:46:58 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-13 22:46:58 (EDT) |
commit | 5246ba1008d4e5d0edd82c37a791c82574940e1e (patch) | |
tree | 7d6193322ed6fc849b5c8bc0924e297e66b1fa19 | |
parent | b8eb07a865a4489414676783199cb12e70588371 (diff) |
src/garbage.sh: Prefix "static" function with "_"
-rw-r--r-- | src/garbage.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 # <http://www.gnu.org/licenses/>. -time() +_time() { # Based on code from <https://www.etalabs.net/sh_tricks.html> 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" |