opnsense-ports/sysutils/monitorix/files/patch-lib__net.pm
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
611 B
Perl

--- lib/net.pm.orig 2014-09-09 15:40:43 UTC
+++ lib/net.pm
@@ -203,7 +203,7 @@
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, $net_packs_in[$n], $net_error_in[$n], undef, $net_bytes_in[$n], $net_packs_out[$n], $net_error_out[$n], $net_bytes_out[$n]) = split(' ', $_);
} else {
(undef, undef, undef, undef, $net_packs_in[$n], $net_error_in[$n], $net_bytes_in[$n], $net_packs_out[$n], $net_error_out[$n], $net_bytes_out[$n]) = split(' ', $_);