[grilo] net: properly set the SoupCache max size
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] net: properly set the SoupCache max size
- Date: Wed, 15 May 2013 16:58:10 +0000 (UTC)
commit ab5db43b56f464d78a28f62202a6540e9d04c705
Author: Sergio Villar Senin <svillar igalia com>
Date: Tue May 14 17:29:24 2013 +0200
net: properly set the SoupCache max size
The SoupCache expects the maximum size to be specified in bytes
instead of in megabytes. Also removed the call to
soup_cache_set_max_size just after creating the cache as it is not
needed.
https://bugzilla.gnome.org/show_bug.cgi?id=700310
libs/net/grl-net-soup-unstable.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libs/net/grl-net-soup-unstable.c b/libs/net/grl-net-soup-unstable.c
index e64c784..39cae8c 100644
--- a/libs/net/grl-net-soup-unstable.c
+++ b/libs/net/grl-net-soup-unstable.c
@@ -106,8 +106,6 @@ cache_up (GrlNetWc *self)
cache = soup_cache_new (dir, SOUP_CACHE_SINGLE_USER);
g_free (dir);
- soup_cache_set_max_size (cache, cache_size);
-
soup_session_add_feature (priv->session,
SOUP_SESSION_FEATURE (cache));
}
@@ -125,7 +123,7 @@ cache_set_size (GrlNetWc *self, guint size)
return;
cache_size = size;
- soup_cache_set_max_size (cache, cache_size);
+ soup_cache_set_max_size (cache, cache_size * 1024 * 1024);
}
guint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]