Code cleanup
This commit is contained in:
parent
f5ede830a5
commit
77a972c62e
@ -450,11 +450,11 @@ static void _download_refresh(Download * download)
|
|||||||
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(download->progress), buf);
|
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(download->progress), buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _refresh_unit(guint64 total, double * fraction, char const ** unit,
|
static void _refresh_unit(guint64 size, double * fraction, char const ** unit,
|
||||||
double * current)
|
double * current)
|
||||||
{
|
{
|
||||||
/* bytes */
|
/* bytes */
|
||||||
*fraction = total;
|
*fraction = size;
|
||||||
*unit = _("bytes");
|
*unit = _("bytes");
|
||||||
if(*fraction < 1024)
|
if(*fraction < 1024)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user