Skip to content

Commit

Permalink
[BF] #190: sflow-to-rrd-handler passes extra argument to rrd update
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhilliard committed Dec 13, 2014
1 parent 53720c2 commit 81a7fa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/runtime/sflow/sflow-to-rrd-handler
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ sub build_update_rrd
if (!-d $dir) {
make_path($dir) or die "Could not make directory: $dir: $!\n";
}
@rrds_options = (
my @rrds_create_options = (
'DS:traffic_in:GAUGE:600:U:U',
'DS:traffic_out:GAUGE:600:U:U',
'RRA:AVERAGE:0.5:1:600', 'RRA:MAX:0.5:1:600',
Expand All @@ -290,7 +290,7 @@ sub build_update_rrd
'RRA:AVERAGE:0.5:288:3650', 'RRA:MAX:0.5:288:3650',
);

RRDs::create ($rrdfile, @rrds_options);
RRDs::create ($rrdfile, @rrds_create_options);
$rrd_err = RRDs::error;
print STDERR "WARNING: while updating $rrdfile: $rrd_err\n" if $rrd_err;
}
Expand Down

0 comments on commit 81a7fa8

Please sign in to comment.