From b93cfdbb53071ab18ec530ec659e281e7fb8064f Mon Sep 17 00:00:00 2001
From: Chris Nehren <cnehren@omniti.com>
Date: Fri, 13 Dec 2013 15:51:35 -0500
Subject: [PATCH] remove debugging and fix stats reporting

---
 lib/Core/Linux/NetUsage.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Core/Linux/NetUsage.pm b/lib/Core/Linux/NetUsage.pm
index 30ea46e..fe94e05 100644
--- a/lib/Core/Linux/NetUsage.pm
+++ b/lib/Core/Linux/NetUsage.pm
@@ -70,7 +70,6 @@ sub handler {
     my $self = shift;
     my $config = $self->{config};
     my $interface = $config->{interface};
-    print "I have ${interface}\n";
 
     my $stats = get_network_statistics_for($interface);
     return $stats;
@@ -91,6 +90,7 @@ sub get_network_statistics_for {
       <$fh>;
     };
     chomp $stats->{$stat};
+    $stats->{$stat} = [$stats->{$stat}, 'L'];
   }
 
   return $stats;
-- 
GitLab