From 151cd3e45fd6660fe3d373b7ecd66c71fdafd2c7 Mon Sep 17 00:00:00 2001 From: Sabato Luca Guadagno Date: Tue, 6 Jul 2021 10:29:37 +0200 Subject: [PATCH] resolve #106, Bug: GiGB in RAM usage (Ubuntu) --- scripts/ram_info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ram_info.sh b/scripts/ram_info.sh index 5489912..f7ed9b6 100755 --- a/scripts/ram_info.sh +++ b/scripts/ram_info.sh @@ -28,10 +28,10 @@ get_percent() echo $memory_usage\M\B/$total_mem_mb\M\B elif (( $used_mem == 0 )); then memory_usage=$(free -m | awk '/^Mem/ {print $3}') - echo $memory_usage\M\B/$total_mem\G\B + echo $memory_usage\M\B/$total_mem_gb\G\B else memory_usage=$(free -g | awk '/^Mem/ {print $3}') - echo $memory_usage\G\B/$total_mem\G\B + echo $memory_usage\G\B/$total_mem_gb\G\B fi ;;