From 3a46c05b4656455785a9d6858b94d4c334a25908 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 12 Apr 2016 10:59:06 -0700 Subject: [PATCH] Fix the progress indicator --- tile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cc b/tile.cc index 6fb413a7..2db32019 100644 --- a/tile.cc +++ b/tile.cc @@ -713,7 +713,7 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s signed char feature_minzoom; deserialize_byte_io(geoms, &feature_minzoom, geompos_in); - double progress = floor((((*geompos_in - *along) / (double) todo) + z) / (maxzoom + 1) * 1000) / 10; + double progress = floor((((*geompos_in + *along) / (double) todo) + z) / (maxzoom + 1) * 1000) / 10; if (progress >= oprogress + 0.1) { if (!quiet) { fprintf(stderr, " %3.1f%% %d/%u/%u \r", progress, z, tx, ty);