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:
parent
d668586e8c
commit
a95c910f9c
@ -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>
|
2005-09-01 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* progress.c: Introduce symbolic constants for "magic" values of
|
* progress.c: Introduce symbolic constants for "magic" values of
|
||||||
|
@ -515,13 +515,13 @@ fd_read_line (int fd)
|
|||||||
the units appropriate for the download speed. */
|
the units appropriate for the download speed. */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
retr_rate (wgint bytes, double msecs)
|
retr_rate (wgint bytes, double secs)
|
||||||
{
|
{
|
||||||
static char res[20];
|
static char res[20];
|
||||||
static const char *rate_names[] = {"B/s", "KB/s", "MB/s", "GB/s" };
|
static const char *rate_names[] = {"B/s", "KB/s", "MB/s", "GB/s" };
|
||||||
int units;
|
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),
|
/* Use more digits for smaller numbers (regardless of unit used),
|
||||||
e.g. "1022", "247", "12.5", "2.38". */
|
e.g. "1022", "247", "12.5", "2.38". */
|
||||||
sprintf (res, "%.*f %s",
|
sprintf (res, "%.*f %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user