aboutsummaryrefslogtreecommitdiff
path: root/sysutils/munin-node/files/patch-node-node.d.freebsd-if_.in.diff
blob: ff4aa9183927ddf180ef6108620f1e70f04abbc8 (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	2009-12-30 13:55:55.000000000 +0100
+++ plugins/node.d.freebsd/if_.in	2010-02-24 18:59:15.670282185 +0100
@@ -81,9 +81,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