From 3450cb497344e1428de6fbcce40fb36e03874ce4 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 26 Aug 2013 11:55:54 +0300 Subject: [PATCH] relative path to pidof command --- 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 79254fe12..59f7a2fd6 100755 --- a/bin/v-list-sys-services +++ b/bin/v-list-sys-services @@ -28,7 +28,7 @@ get_srv_state() { # Calculate cpu and memory usage cpu=0 mem=0 - for pid in $(/sbin/pidof $proc_name); do + for pid in $(pidof $proc_name); do pid_mem=$(pmap -x $pid | tail -n1 | awk '{print $3}') pid_cpu=$(grep "^$pid " $tmp_file | cut -f 2 -d ' ') cpu=$((cpu + pid_cpu))