Skip to content

Commit e3c3ba2

Browse files
committed
Beautified mapcode.c for publishing
1 parent 7ec49f1 commit e3c3ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapcode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ int main(const int argc, const char** argv)
333333

334334
if ((i % SHOW_PROGRESS) == 0) {
335335
fprintf(stderr, "[%d%%] Processed %d of %d regions (generated %d Mapcodes)...\r",
336-
(int) (((float) i / ((float) nrPoints)) + 0.5),
336+
(int) ((((float) i / ((float) nrPoints)) * 100.0) + 0.5),
337337
i, nrPoints, totalNrOfResults);
338338
}
339339
}
@@ -422,7 +422,7 @@ int main(const int argc, const char** argv)
422422
totalNrOfResults += nrResults;
423423
if ((i % SHOW_PROGRESS) == 0) {
424424
fprintf(stderr, "[%d%%] Created %d of %d 3D %s data points (generated %d Mapcodes)...\r",
425-
(int) (((float) i / ((float) nrPoints)) + 0.5),
425+
(int) ((((float) i / ((float) nrPoints)) * 100.0) + 0.5),
426426
i, nrPoints, random ? "random" : "grid", totalNrOfResults);
427427
}
428428
}

0 commit comments

Comments
 (0)