]> git.openstreetmap.org Git - nominatim.git/commit
avoid division by zero in progress meter
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 21 Mar 2021 15:47:22 +0000 (16:47 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 21 Mar 2021 15:47:22 +0000 (16:47 +0100)
commita08ca5b1b54cb66d5e89ed11b5709fa92780a646
treeea2807c4102822527dc19105c13f3c3b73f7af2b
parent118befd7d7453b7abf89afaa614e3edfafc47a1b
avoid division by zero in progress meter

On Windows systems the timer may not be accurate enough to measure
the time between init() and done(). Avoid computing statistics with
a diff time of 0 in such cases.

Fixes #2230.
nominatim/indexer/progress.py