mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 02:33:18 +00:00
Plugin minecraft-users-ram_: return "U" if no value can be retrieved
This commit is contained in:
parent
f6a8f2beb1
commit
651f6ac056
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ then #is running
|
|||
MEMGiB=$(ps -p "$MC_PID" -o rss | sed -n '2p' | awk '{ print $1 / 1024 / 1024 }')
|
||||
CPU=$(top -bp "$MC_PID" -n 1 | sed -n '$p' | awk '{ print $10 / 100; }')
|
||||
else
|
||||
MEMGiB=0
|
||||
CPU=0
|
||||
MEMGiB="U"
|
||||
CPU="U"
|
||||
fi
|
||||
|
||||
echo "users.value $PLAYERCOUNT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue