Skip to content

Commit 137f258

Browse files
Merge pull request hestiacp#843 from Skamasle/patch-6
Fix bug, fail display results whit some locales.
2 parents 82d0dd0 + 29c5f93 commit 137f258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-list-sys-services

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ get_srv_state() {
9999

100100
# Calculating memory usage
101101
mem=$(echo "$pids" |awk '{sum += $3} END {print sum/1024 }')
102-
mem=$(printf "%.0f\n" $mem)
102+
mem=$(echo "${mem%%.*}")
103103

104104
# Searching pid file
105105
pid_file=''

0 commit comments

Comments
 (0)