fixed kernel version detection in FreeBSD 10.x which affected the Network graph (net.pm)

This commit is contained in:
Jordi Sanfeliu 2014-09-09 16:50:55 +02:00
parent 531b9096f6
commit 6455dc5fdb
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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(' ', $_);