summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/garbage.sh6
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"