1
0
Fork 0

integer progress values

This commit is contained in:
Jan Steemann 2014-10-09 20:54:41 +02:00
parent ec10ca6c2d
commit d94eaf498f
1 changed files with 2 additions and 2 deletions

View File

@ -415,8 +415,8 @@ namespace triagens {
double pct = 100.0 * ((double) totalRead / (double) totalLength);
if (pct >= nextProgress && totalLength >= 1024) {
LOG_INFO("processed %lld bytes (%0.2f%%) of input file", (long long) totalRead, pct);
nextProgress = pct + ProgressStep;
LOG_INFO("processed %lld bytes (%0.1f%%) of input file", (long long) totalRead, nextProgress);
nextProgress = (double) ((int) (pct + ProgressStep));
}
}