summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorMatthew Hambley <lists@aether.demon.co.uk>2004-04-25 11:40:05 +0000
committerMatthew Hambley <lists@aether.demon.co.uk>2004-04-25 11:40:05 +0000
commitd44ab700d065a5ac859df24969a4d993cee122ec (patch)
treeeb67109f3052b0b5beb2b3da5116c55ec36ab954 /content/fetchcache.c
parent7a06e57bb2a2495c3b3f1b8d63217aec4320de85 (diff)
downloadnetsurf-d44ab700d065a5ac859df24969a4d993cee122ec.tar.gz
netsurf-d44ab700d065a5ac859df24969a4d993cee122ec.tar.bz2
[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
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c8
1 files changed, 4 insertions, 4 deletions
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;