mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin lxc: clarify network bandwidth calculation
This commit is contained in:
parent
313d195f3b
commit
914d1c5f25
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ EOF
|
|||
fi
|
||||
bps="U"
|
||||
if [ -r "/sys/class/net/$device/speed" ]; then
|
||||
bps=$(($(cat "/sys/class/net/$device/speed") * 1000 * 1000))
|
||||
megabit_per_second=$(cat "/sys/class/net/$device/speed")
|
||||
bps=$((megabit_per_second * 1000 * 1000))
|
||||
fi
|
||||
cat <<EOF
|
||||
$(clean_fieldname "net__${n}_down").label $n
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue