diff --git a/bin/v-list-sys-services b/bin/v-list-sys-services index 8e047b9c0..79254fe12 100755 --- a/bin/v-list-sys-services +++ b/bin/v-list-sys-services @@ -37,8 +37,8 @@ get_srv_state() { mem=$((mem / 1024)) # Get pid date - if [ ! -z $pid ] && [ -e "/proc/$pid/cmdline" ]; then - mtime=$(stat -c "%Y" /proc/$pid/cmdline) + if [ ! -z $pid ] && [ -e "/proc/$pid" ]; then + mtime=$(stat -c "%Y" /proc/$pid) rtime=$((ctime - mtime)) rtime=$((rtime / 60)) fi