mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Fix missing stats entries
Fix for link tags that are substrings of other link tags.
This commit is contained in:
parent
47714febb6
commit
cb6f4c317b
@ -193,7 +193,7 @@ sub read_knownlinks {
|
|||||||
my ($routerip,$ifindex,$tag,$descr,$color) = split(/\t+/);
|
my ($routerip,$ifindex,$tag,$descr,$color) = split(/\t+/);
|
||||||
my $known = 0;
|
my $known = 0;
|
||||||
foreach my $link (values %knownlinks) {
|
foreach my $link (values %knownlinks) {
|
||||||
if ($tag =~ $link) { $known=1; last; }
|
if ($tag eq $link) { $known=1; last; }
|
||||||
}
|
}
|
||||||
if ($known == 0) {
|
if ($known == 0) {
|
||||||
$knownlinks{"${routerip}_${ifindex}"} = $tag;
|
$knownlinks{"${routerip}_${ifindex}"} = $tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user