1 --- a/par2creatorsourcefile.cpp
2 +++ b/par2creatorsourcefile.cpp
3 @@ -213,21 +213,22 @@ bool Par2CreatorSourceFile::Open(CommandLine::NoiseLevel noiselevel, const Comma
7 + // Define MPDL to skip reporting; speeds up things considerably
9 if (noiselevel > CommandLine::nlQuiet)
12 u32 oldfraction = (u32)(1000 * offset / filesize);
14 - u32 newfraction = (u32)(1000 * offset / filesize);
15 + // The original source had here: offset += want;
16 + // That's definitely an error, because offset must always be incremented!
17 + u32 newfraction = (u32)(1000 * (offset + want) / filesize);
18 if (oldfraction != newfraction)
20 cout << newfraction/10 << '.' << newfraction%10 << "%\r" << flush;
31 // Did we finish the last block