+ small AS-Stats fix

This commit is contained in:
Manuel Kasper 2012-06-20 12:48:20 +00:00
parent 9080842d99
commit ece9fbd841
2 changed files with 8 additions and 1 deletions

5
README
View File

@ -5,6 +5,11 @@ by Manuel Kasper, Monzoon Networks AG <mkasper@monzoon.net>
Changes
-------
vx.x Fix creation of new RRDs when multiple entries with the same
tag are present in the known links file
(spotted by Michel Moriniaux)
v1.35 Allow hyphens in link names.
(contributed by Gareth Campling)

View File

@ -232,8 +232,10 @@ sub getrrdfile {
if (! -r $rrdfile) {
#print "$$: creating RRD file for AS $as\n";
my %links = map { $_, 1 } values %knownlinks;
my @args;
while (my ($key, $alias) = each(%knownlinks)) {
foreach my $alias (keys %links) {
push(@args, "DS:${alias}_in:ABSOLUTE:300:U:U");
push(@args, "DS:${alias}_out:ABSOLUTE:300:U:U");
}