From 77a972c62e64b89ac7be6cb0b7e2b67beaa1b460 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 2 Jun 2012 10:21:37 +0000 Subject: [PATCH] Code cleanup --- src/download.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/download.c b/src/download.c index 11c620d..56a575a 100644 --- a/src/download.c +++ b/src/download.c @@ -450,11 +450,11 @@ static void _download_refresh(Download * download) 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) { /* bytes */ - *fraction = total; + *fraction = size; *unit = _("bytes"); if(*fraction < 1024) return;