Code cleanup

This commit is contained in:
Pierre Pronchery 2012-06-02 10:21:37 +00:00
parent f5ede830a5
commit 77a972c62e

View File

@ -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;