summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-05-08 15:42:49 +0100
committerVincent Sanders <vince@kyllikki.org>2015-05-08 15:42:49 +0100
commit37aad9c749892219a303734581fae887ee074d22 (patch)
tree0cd0404be0b3d0bcbb9f0ea0fb5e423ec655803e
parent2c51dabfeb8f48c4fc1280ae02ae56cd246045c5 (diff)
downloadnetsurf-37aad9c749892219a303734581fae887ee074d22.tar.gz
netsurf-37aad9c749892219a303734581fae887ee074d22.tar.bz2
Improve the logge dinformation about written cache data
-rw-r--r--content/llcache.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 9628fd348..d54abc01d 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -3307,11 +3307,6 @@ void llcache_finalise(void)
llcache_object *object, *next;
unsigned long total_bandwidth = 0; /* total bandwidth */
- if (llcache->total_elapsed > 0) {
- total_bandwidth = (llcache->total_written * 1000) /
- llcache->total_elapsed;
- }
-
/* Clean uncached objects */
for (object = llcache->uncached_objects; object != NULL; object = next) {
llcache_object_user *user, *next_user;
@@ -3357,8 +3352,13 @@ void llcache_finalise(void)
/* backing store finalisation */
guit->llcache->finalise();
- LOG(("Backing store average bandwidth %lu bytes/second",
- total_bandwidth));
+ if (llcache->total_elapsed > 0) {
+ total_bandwidth = (llcache->total_written * 1000) /
+ llcache->total_elapsed;
+ }
+
+ LOG(("Backing store wrote %lu bytes in %lu ms average %lu bytes/second",
+ llcache->total_written, llcache->total_elapsed, total_bandwidth));
free(llcache);
llcache = NULL;