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

[svn] Change name of param.

This commit is contained in:
hniksic 2005-09-17 05:55:21 -07:00
parent d668586e8c
commit a95c910f9c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-09-17 Hrvoje Niksic <hniksic@xemacs.org>
* retr.c (retr_rate): Rename parameter from MSECS to SECS since it
no longer holds milliseconds.
2005-09-01 Hrvoje Niksic <hniksic@xemacs.org>
* progress.c: Introduce symbolic constants for "magic" values of

View File

@ -515,13 +515,13 @@ fd_read_line (int fd)
the units appropriate for the download speed. */
const char *
retr_rate (wgint bytes, double msecs)
retr_rate (wgint bytes, double secs)
{
static char res[20];
static const char *rate_names[] = {"B/s", "KB/s", "MB/s", "GB/s" };
int units;
double dlrate = calc_rate (bytes, msecs, &units);
double dlrate = calc_rate (bytes, secs, &units);
/* Use more digits for smaller numbers (regardless of unit used),
e.g. "1022", "247", "12.5", "2.38". */
sprintf (res, "%.*f %s",