Merge pull request #43 from steveglen/master

Fix add_ds_proc index into new datasource array
This commit is contained in:
Manuel Kasper 2015-02-02 09:35:47 +01:00
commit 745d6f7d03

View File

@ -56,12 +56,12 @@ while (<STDIN>) {
($num_sources) = ($datasource =~ /(\d+)/);
for ($x = $num_sources+1; $x < $num_sources+$ds+1; $x++) {
for ($x = 0; $x < $ds; $x++) {
$fields .= $field;
print "\n\t<ds>\n";
print "\t\t<name> " . $dsnames[$x-1] . " <\/name>\n";
print "\t\t<name> " . $dsnames[$x] . " <\/name>\n";
print "\t\t<type> $type <\/type>\n";
print "\t\t<minimal_heartbeat> $heartbeat <\/minimal_heartbeat>\n";
print "\t\t<min> $rrdmin <\/min>\n";