From: Bastian Dehn Date: Sat, 24 May 2025 13:53:14 +0000 (+0200) Subject: remove method human readable size X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=6c8cecee0d0d30aad450a961fdd73d2fe4c86975;p=simple-backup.git remove method human readable size --- 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"