+ /* This intentionally rounds to the floor value because it is a
+ measure of how much data *has* been retrieved. Therefore 12.8%
+ rounds to 12% because the 13% mark has not yet been reached.
+ Likewise, 100% is only shown when all data has been retrieved,
+ not before. */
+
+ int percentage = 100.0 * bytes / expected;