mirror of
https://github.com/collectd/collectd.git
synced 2026-02-09 04:09:15 +08:00
Apply code review suggestion
This commit is contained in:
@@ -77,9 +77,9 @@ sub read_types_db
|
||||
my ($type, $specs) = split(m/\s+/, $line, 2);
|
||||
my @specs = split(m/,?\s+/, $specs);
|
||||
$Types->{$type} = [];
|
||||
for (my $i = 0; $i < @specs; $i++)
|
||||
foreach my $spec (@specs)
|
||||
{
|
||||
my ($name, $ds_type, $min, $max) = split(m/:/, $specs[$i]);
|
||||
my ($name, $ds_type, $min, $max) = split(m/:/, $spec);
|
||||
push (@{$Types->{$type}}, $name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user