Skip to content

Commit 3450cb4

Browse files
committed
relative path to pidof command
1 parent 6959c38 commit 3450cb4

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
@@ -28,7 +28,7 @@ get_srv_state() {
2828
# Calculate cpu and memory usage
2929
cpu=0
3030
mem=0
31-
for pid in $(/sbin/pidof $proc_name); do
31+
for pid in $(pidof $proc_name); do
3232
pid_mem=$(pmap -x $pid | tail -n1 | awk '{print $3}')
3333
pid_cpu=$(grep "^$pid " $tmp_file | cut -f 2 -d ' ')
3434
cpu=$((cpu + pid_cpu))

0 commit comments

Comments
 (0)