summaryrefslogtreecommitdiff
path: root/src/session-get.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-08-30 20:38:39 +0100
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-08-30 20:38:39 +0100
commit142a857cf5d6cd8d834b7f51b230020c5f238b67 (patch)
treef3e9d4778550b6a320d1b1330a95ed9a61d3173c /src/session-get.c
parentaa48fd9b7bef66ab265168e22393fe903ccc0171 (diff)
use json_node_really_get_double() on the seed ratio limits, maybe causing issue 213.
Diffstat (limited to 'src/session-get.c')
-rw-r--r--src/session-get.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session-get.c b/src/session-get.c
index 7f4dd9c..7bd2dd6 100644
--- a/src/session-get.c
+++ b/src/session-get.c
@@ -22,6 +22,7 @@
#include <json-glib/json-glib.h>
#include "protocol-constants.h"
+#include "json.h"
#include "session-get.h"
/* Just some functions to get fields out of a session-get response. */
@@ -169,7 +170,7 @@ gint64 session_get_cache_size_mb(JsonObject * s)
gdouble session_get_seed_ratio_limit(JsonObject * s)
{
- return json_object_get_double_member(s, SGET_SEED_RATIO_LIMIT);
+ return json_node_really_get_double(json_object_get_member(s, SGET_SEED_RATIO_LIMIT));
}
gboolean session_get_start_added_torrents(JsonObject * s)