$pid fix in v-list-sys-services

This commit is contained in:
myvesta 2021-11-14 21:11:34 +01:00 committed by GitHub
commit de5f28459e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ get_srv_state() {
if [ $debug -eq 1 ]; then
echo "getting pid lifetime via ps"
fi
rtime=$(ps -p 2877633 -o etimes | tail -n 1 | awk '{print $1}')
rtime=$(ps -p $pid -o etimes | tail -n 1 | awk '{print $1}')
rtime=$((rtime / 60))
fi
else