From 307091b47073814c520201f421b39a514457c429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Michaud?= Date: Mon, 17 May 2021 23:20:55 +0200 Subject: [PATCH] Support bytes in calc bytes function. --- borg_exporter.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/borg_exporter.sh b/borg_exporter.sh index 4b399a5..6ba044e 100755 --- a/borg_exporter.sh +++ b/borg_exporter.sh @@ -47,6 +47,9 @@ function calc_bytes { TB) echo $NUM | awk '{ print $1 * 1024 * 1024 * 1024 * 1024 }' ;; + B) + echo $NUM | awk '{ print $1 }' + ;; esac }