[mapcode] 22/32: Beautified mapcode.c for publishing
Stefan Fritsch
sf at moszumanska.debian.org
Wed Nov 2 23:27:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
sf pushed a commit to annotated tag v1.33
in repository mapcode.
commit e3c3ba238cc4173de8f966a02b429d93ceb80dbb
Author: Rijn Buve <rijn at buve.nl>
Date: Sat Aug 30 18:45:50 2014 +0200
Beautified mapcode.c for publishing
---
mapcode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mapcode.c b/mapcode.c
index 8116f31..98df1f2 100644
--- a/mapcode.c
+++ b/mapcode.c
@@ -333,7 +333,7 @@ int main(const int argc, const char** argv)
if ((i % SHOW_PROGRESS) == 0) {
fprintf(stderr, "[%d%%] Processed %d of %d regions (generated %d Mapcodes)...\r",
- (int) (((float) i / ((float) nrPoints)) + 0.5),
+ (int) ((((float) i / ((float) nrPoints)) * 100.0) + 0.5),
i, nrPoints, totalNrOfResults);
}
}
@@ -422,7 +422,7 @@ int main(const int argc, const char** argv)
totalNrOfResults += nrResults;
if ((i % SHOW_PROGRESS) == 0) {
fprintf(stderr, "[%d%%] Created %d of %d 3D %s data points (generated %d Mapcodes)...\r",
- (int) (((float) i / ((float) nrPoints)) + 0.5),
+ (int) ((((float) i / ((float) nrPoints)) * 100.0) + 0.5),
i, nrPoints, random ? "random" : "grid", totalNrOfResults);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git
More information about the Pkg-grass-devel
mailing list