From 29c5f934757b0a65131a5da7afd041d5dd55e6ce Mon Sep 17 00:00:00 2001 From: Skamasle Date: Sun, 18 Sep 2016 23:59:08 +0200 Subject: [PATCH] Update v-list-sys-services Printf work fine but fail whit some locales -> https://forum.vestacp.com/viewtopic.php?f=17&t=12585 In my test this work as well as printf but not is afected to locale problems. --- bin/v-list-sys-services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-list-sys-services b/bin/v-list-sys-services index c67cd94f..64556e76 100755 --- a/bin/v-list-sys-services +++ b/bin/v-list-sys-services @@ -99,7 +99,7 @@ get_srv_state() { # Calculating memory usage mem=$(echo "$pids" |awk '{sum += $3} END {print sum/1024 }') - mem=$(printf "%.0f\n" $mem) + mem=$(echo "${mem%%.*}") # Searching pid file pid_file=''