X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5e477e3b5b99da6fc4e54749d4671a6fc8fdcd66..84abf7c95a3aa639116bfe2e4affe27a50e0edca:/nominatim/indexer/progress.py diff --git a/nominatim/indexer/progress.py b/nominatim/indexer/progress.py index 177c262b..33df37fb 100644 --- a/nominatim/indexer/progress.py +++ b/nominatim/indexer/progress.py @@ -55,7 +55,7 @@ class ProgressLogger: self.next_info += int(places_per_sec) * self.log_interval - def done(self) -> None: + def done(self) -> int: """ Print final statistics about the progress. """ rank_end_time = datetime.now() @@ -70,3 +70,5 @@ class ProgressLogger: LOG.warning("Done %d/%d in %d @ %.3f per second - FINISHED %s\n", self.done_places, self.total_places, int(diff_seconds), places_per_sec, self.name) + + return self.done_places