mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Cosmetic change in var names.
This commit is contained in:
parent
45164e05cc
commit
d403f7f835
@ -758,10 +758,12 @@ create_image (struct bar_progress *bp, double dl_total_time)
|
|||||||
{
|
{
|
||||||
static char *short_units[] = { "B/s", "K/s", "M/s", "G/s" };
|
static char *short_units[] = { "B/s", "K/s", "M/s", "G/s" };
|
||||||
int units = 0;
|
int units = 0;
|
||||||
long bytes = hist->total_bytes + bp->recent_bytes;
|
/* Calculate the download speed using the history ring and
|
||||||
double tm = hist->total_time + dl_total_time - bp->recent_start;
|
recent data that hasn't made it to the ring yet. */
|
||||||
double dlrate = calc_rate (bytes, tm, &units);
|
long dlquant = hist->total_bytes + bp->recent_bytes;
|
||||||
sprintf (p, " %7.2f%s", dlrate, short_units[units]);
|
double dltime = hist->total_time + (dl_total_time - bp->recent_start);
|
||||||
|
double dlspeed = calc_rate (dlquant, dltime, &units);
|
||||||
|
sprintf (p, " %7.2f%s", dlspeed, short_units[units]);
|
||||||
p += strlen (p);
|
p += strlen (p);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user