From 6c8cecee0d0d30aad450a961fdd73d2fe4c86975 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 24 May 2025 15:53:14 +0200 Subject: [PATCH] remove method human readable size --- backup | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backup b/backup index d917715..0721583 100755 --- a/backup +++ b/backup @@ -10,20 +10,6 @@ errlog() return $lastexit } -SizeHumanReadable() -{ - local size=$1 - local einheit=("Bytes" "KiB" "MiB" "GiB" "TiB" "PiB") - local count=0 - - while [ $size -gt 1024 ]; do - size=$((size / 1024)) - ((count++)) - done - - printf "%s %s\n" "$size" "${einheit[$count]}" -} - get_backup_dir() { local backup_path="$1" -- 2.47.3