summaryrefslogtreecommitdiff
path: root/lib/Loadbars
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2012-06-23 18:07:20 +0200
committerPaul Buetow <paul@buetow.org>2012-06-23 18:07:20 +0200
commit32e4c325a2a7432d9ef9ca4865929cfa9b3cfd9b (patch)
tree076bc32f5c452026d10662684ff7af620c09ff99 /lib/Loadbars
parent566d91946cdfa356342c63975ff572d143b68fc2 (diff)
fix on netstats
Diffstat (limited to 'lib/Loadbars')
-rw-r--r--lib/Loadbars/Main.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Loadbars/Main.pm b/lib/Loadbars/Main.pm
index 95938fe..3e38b70 100644
--- a/lib/Loadbars/Main.pm
+++ b/lib/Loadbars/Main.pm
@@ -197,7 +197,8 @@ REMOTECODE
$mode = 3;
} elsif ( $_ eq 'M LOADAVG' ) {
$mode = 0;
- }
+ }
+ next;
}
if ( $mode == 0 ) {
@@ -221,8 +222,9 @@ REMOTECODE
}
}
elsif ( $mode == 3 ) {
- $NETSTATS{$host} = $_;
- print "$_\n";
+ my ($int, @stats) = split ':', $_;
+ printf "$host;$int = @stats\n";
+ $NETSTATS{"$host;$int"} = "@stats";
$NETSTATS_HAS{$host} = 1 unless defined $NETSTATS_HAS{$host};
}