]> git.openstreetmap.org Git - nominatim.git/commitdiff
reduce message frequency during indexing
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 17 Sep 2017 18:13:05 +0000 (20:13 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 17 Sep 2017 18:13:05 +0000 (20:13 +0200)
nominatim/index.c

index 9aa3fb86c31ce0999d5aa22e6f0f83afa83dda53..ab87bdca32272d0aaf9ffbdc290c16a13e5c056d 100644 (file)
@@ -218,7 +218,7 @@ struct index_thread_data * thread_data, const char *structuredoutputfile)
                     usleep(1000);
 
                     // Aim for one update per second
-                    if (sleepcount++ > 500)
+                    if (sleepcount++ > 1000)
                     {
                         rankPerSecond = ((float)rankCountTuples + (float)count) / MAX(difftime(time(0), rankStartTime),1);
                         if(interpolation)