We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f04b44a commit 33b1bccCopy full SHA for 33b1bcc
1 file changed
bin/v-list-sys-services
@@ -78,6 +78,9 @@ get_srv_state() {
78
srv=$1
79
name=${2-$1}
80
state='running'
81
+ mem=0
82
+ cpu=0
83
+ rtime="0"
84
85
# Searching related pids
86
if [ -z $3 ]; then
@@ -92,6 +95,7 @@ get_srv_state() {
92
95
# Checking pid
93
96
if [ ! -z "$pids" ]; then
94
97
pid=$(echo "$pids" |cut -f 1 -d '|')
98
+ pids=${pids%|}
99
pids=$(egrep "$pids" $tmp_file)
100
101
# Calculating CPU usage
0 commit comments