summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-06-13 11:22:53 -0700
committerGitHub <noreply@github.com>2019-06-13 11:22:53 -0700
commit2179a6d70043d54fa9429822a2d55c8e639d9dd2 (patch)
tree6f94a4504c5825e4c8649807386102bd9dfdff8d
parent9b686159a352863dc6984a8b8b704f2065a061b0 (diff)
downloadohai-2179a6d70043d54fa9429822a2d55c8e639d9dd2.tar.gz
Update lib/ohai/plugins/netbsd/network.rb
Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: Robb Kidd <robb@thekidds.org>
-rw-r--r--lib/ohai/plugins/netbsd/network.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/netbsd/network.rb b/lib/ohai/plugins/netbsd/network.rb
index 368f921f..f5e80386 100644
--- a/lib/ohai/plugins/netbsd/network.rb
+++ b/lib/ohai/plugins/netbsd/network.rb
@@ -107,7 +107,7 @@ Ohai.plugin(:Network) do
# em0 1500 <Link> 00:11:25:2d:90:be 3719557 0 3369969 0 0 0
# $1 $2 $3 $4 $5 $6 $7 $8
if line =~ /^([\w\.\*]+)\s+\d+\s+<Link>\s+([\w:]*)\s*(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/
- net_counters[$1] ||= Mash.ne
+ net_counters[$1] ||= Mash.new
net_counters[$1]["rx"] ||= Mash.new
net_counters[$1]["tx"] ||= Mash.new
net_counters[$1]["rx"]["packets"] = $3