places-setup: fix duplicate prints

pull/395/head
Varun Patil 2023-02-06 08:01:47 -08:00
parent 1be68551e5
commit 5dffccbc91
1 changed files with 10 additions and 10 deletions

View File

@ -235,17 +235,17 @@ class PlacesSetup extends Command
continue;
}
}
// Print progress
if (0 === $count % 500) {
$end = time();
$elapsed = $end - $start;
$rate = $count / $elapsed;
$remaining = APPROX_PLACES - $count;
$eta = round($remaining / $rate);
$rate = round($rate, 1);
$this->output->writeln("Inserted {$count} places, {$rate}/s, ETA: {$eta}s, Last: {$name}");
}
// Print progress
if (0 === $count % 500) {
$end = time();
$elapsed = $end - $start;
$rate = $count / $elapsed;
$remaining = APPROX_PLACES - $count;
$eta = round($remaining / $rate);
$rate = round($rate, 1);
$this->output->writeln("Inserted {$count} places, {$rate}/s, ETA: {$eta}s, Last: {$name}");
}
}