diff options
Diffstat (limited to 'src/session-get.c')
-rw-r--r-- | src/session-get.c | 3 |
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) |