From 6274c3af80cc3e6fb3197d6c5a153d2ec9063ab6 Mon Sep 17 00:00:00 2001 From: Gareth Davies Date: Wed, 29 May 2013 06:21:11 +0800 Subject: [PATCH] Fixed total memory being in the wrong scale --- plugins/unicorn/unicorn_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/unicorn/unicorn_ b/plugins/unicorn/unicorn_ index eb39ac39..74a7e30a 100644 --- a/plugins/unicorn/unicorn_ +++ b/plugins/unicorn/unicorn_ @@ -25,7 +25,7 @@ if [ "$mode" = "memory" ]; then for i in "${memory_array[@]}" do - sum=$(( $sum + $i )) + sum=$(( $sum + ( $i * 1024) )) done echo -n "ram.value " echo $sum