mirror of https://github.com/mikaku/Monitorix.git
fixed kernel version detection in FreeBSD 10.x which affected the Network graph (net.pm)
This commit is contained in:
parent
531b9096f6
commit
6455dc5fdb
3
Changes
3
Changes
|
@ -14,6 +14,9 @@
|
|||
avoid confusion. The values set there must be the same ones that in the
|
||||
'/proc/diskstats' file.
|
||||
(thanks to Claude Nadon, claude AT ws01.info for pointing this out)
|
||||
- Fixed kernel version detection in FreeBSD 10.x which affected the Network
|
||||
graph.
|
||||
(thanks to Sergey Andreyev, sandreyev AT gmail.com for pointing this out)
|
||||
|
||||
|
||||
3.6.0 - 20-Aug-2014
|
||||
|
|
|
@ -211,7 +211,7 @@ sub net_update {
|
|||
while(<IN>) {
|
||||
if(/Link/ && /$nl[$n]/) {
|
||||
# Idrop column added in 8.0
|
||||
if($config->{kernel} gt "7.2") {
|
||||
if($config->{kernel} > "7.2") {
|
||||
(undef, undef, undef, undef, $pi, $ei, undef, $bi, $po, $eo, $bo) = split(' ', $_);
|
||||
} else {
|
||||
(undef, undef, undef, undef, $pi, $ei, $bi, $po, $eo, $bo) = split(' ', $_);
|
||||
|
|
Loading…
Reference in New Issue