initialized the data arrays in the 'net_update' function

This commit is contained in:
Jordi Sanfeliu 2013-05-10 13:10:17 +02:00
parent f8313f6e2f
commit bfaaed3d83
1 changed files with 6 additions and 6 deletions

View File

@ -138,12 +138,12 @@ sub net_update {
my $rrd = $config->{base_lib} . $package . ".rrd"; my $rrd = $config->{base_lib} . $package . ".rrd";
my $net = $config->{net}; my $net = $config->{net};
my @net_bytes_in; my @net_bytes_in = (0) x 10;
my @net_bytes_out; my @net_bytes_out = (0) x 10;
my @net_packs_in; my @net_packs_in = (0) x 10;
my @net_packs_out; my @net_packs_out = (0) x 10;
my @net_error_in; my @net_error_in = (0) x 10;
my @net_error_out; my @net_error_out = (0) x 10;
my $n; my $n;
my $rrdata = "N"; my $rrdata = "N";