From d44ab700d065a5ac859df24969a4d993cee122ec Mon Sep 17 00:00:00 2001 From: Matthew Hambley Date: Sun, 25 Apr 2004 11:40:05 +0000 Subject: [project @ 2004-04-25 11:40:05 by matthewh] A more human face to download bytecounts. Needs someone who can speak French to correct the fr messages file. svn path=/import/netsurf/; revision=803 --- content/fetchcache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content') diff --git a/content/fetchcache.c b/content/fetchcache.c index c8c10db01..23f8fc19a 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -174,13 +174,13 @@ void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size) if (c->total_size) sprintf(c->status_message, messages_get("RecPercent"), - c->source_size + size, c->total_size, - (unsigned int) ((c->source_size + size) * - 100.0 / c->total_size)); + human_friendly_bytesize(c->source_size + size), + human_friendly_bytesize(c->total_size), + (unsigned int) ((c->source_size + size) * 100.0 / c->total_size)); else sprintf(c->status_message, messages_get("Received"), - c->source_size + size); + human_friendly_bytesize(c->source_size + size)); content_broadcast(c, CONTENT_MSG_STATUS, msg_data); content_process_data(c, data, size); break; -- cgit v1.2.3