1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Docfix.

This commit is contained in:
hniksic 2005-06-28 02:19:24 -07:00
parent bb0194c6e7
commit 6762389df0

View File

@ -258,12 +258,9 @@ dot_create (wgint initial, wgint total)
static void static void
print_percentage (wgint bytes, wgint expected) print_percentage (wgint bytes, wgint expected)
{ {
/* This intentionally rounds to the floor value because it is a /* Round to the floor value in order to gauge how much data *has*
measure of how much data *has* been retrieved. Therefore 12.8% been retrieved. 12.8% will round to 12% because the 13% mark has
rounds to 12% because the 13% mark has not yet been reached. not yet been reached. 100% is only shown when done. */
Likewise, 100% is only shown when all data has been retrieved,
not before. */
int percentage = 100.0 * bytes / expected; int percentage = 100.0 * bytes / expected;
logprintf (LOG_VERBOSE, "%3d%%", percentage); logprintf (LOG_VERBOSE, "%3d%%", percentage);
} }