Fixed count bug
This commit is contained in:
parent
b9c804b0f6
commit
9613697ada
@ -200,10 +200,11 @@ class Processor
|
|||||||
$this->initConverters();
|
$this->initConverters();
|
||||||
$this->initCollections();
|
$this->initCollections();
|
||||||
$count = count($this->collections);
|
$count = count($this->collections);
|
||||||
$current = 1;
|
$current = 0;
|
||||||
$success = 0;
|
$success = 0;
|
||||||
print(implode(PHP_EOL, array_merge($this->version(), $this->copyright())) . PHP_EOL . PHP_EOL);
|
print(implode(PHP_EOL, array_merge($this->version(), $this->copyright())) . PHP_EOL . PHP_EOL);
|
||||||
foreach ($this->collections as $collectionName => $collection) {
|
foreach ($this->collections as $collectionName => $collection) {
|
||||||
|
++$current;
|
||||||
printf("Converting '%s' (%d/%d):%s", $collectionName, $current, $count, PHP_EOL);
|
printf("Converting '%s' (%d/%d):%s", $collectionName, $current, $count, PHP_EOL);
|
||||||
foreach ($this->converters as $type => $exporter) {
|
foreach ($this->converters as $type => $exporter) {
|
||||||
printf(' > %s', strtolower($type));
|
printf(' > %s', strtolower($type));
|
||||||
@ -212,7 +213,6 @@ class Processor
|
|||||||
printf(' - OK: %s%s', $exporter->getOutputPath(), PHP_EOL);
|
printf(' - OK: %s%s', $exporter->getOutputPath(), PHP_EOL);
|
||||||
}
|
}
|
||||||
print(PHP_EOL);
|
print(PHP_EOL);
|
||||||
++$current;
|
|
||||||
++$success;
|
++$success;
|
||||||
}
|
}
|
||||||
$this->printStats($success, $current);
|
$this->printStats($success, $current);
|
||||||
|
Loading…
Reference in New Issue
Block a user