]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
remove method human readable size
authorBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 13:53:14 +0000 (15:53 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 24 May 2025 13:53:14 +0000 (15:53 +0200)
backup

diff --git a/backup b/backup
index d917715186ab7c553804c4d326288b34f21137cd..0721583de4acb7378f012d8010427d2e82be8838 100755 (executable)
--- 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"