aboutsummaryrefslogtreecommitdiff
path: root/sysutils/munin-node/files/patch-plugins__node.d.freebsd__if_.in
blob: addddd9e0bde5f3735ad052f4682c50549a76005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- plugins/node.d.freebsd/if_.in.orig	2013-07-19 16:30:03 UTC
+++ plugins/node.d.freebsd/if_.in
@@ -83,9 +83,12 @@
 	if (NF == 10) { 
 		print "rbytes.value", $6;
 		print "obytes.value", $9;
-	} else {
+	} else if (NF == 11) {
 		print "rbytes.value", $7;
 		print "obytes.value", $10;
+	} else {
+		print "rbytes.value", $8;
+		print "obytes.value", $11;
 	}
 }'
 fi