diff --git a/borg_exporter b/borg_exporter index 6fafa93..5346099 100755 --- a/borg_exporter +++ b/borg_exporter @@ -27,7 +27,7 @@ function calc_bytes { UNIT=$2 case "$UNIT" in - KB) + kB) echo $NUM | awk '{ print $1 * 1024 }' ;; MB) @@ -36,6 +36,9 @@ function calc_bytes { GB) echo $NUM | awk '{ print $1 * 1024 * 1024 * 1024 }' ;; + TB) + echo $NUM | awk '{ print $1 * 1024 * 1024 * 1024 * 1024 }' + ;; esac }