summaryrefslogtreecommitdiff
path: root/src/torrent.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/torrent.c
parentaa48fd9b7bef66ab265168e22393fe903ccc0171 (diff)
use json_node_really_get_double() on the seed ratio limits, maybe causing issue 213.
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/torrent.c b/src/torrent.c
index 03f6474..01be5a1 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -126,7 +126,7 @@ gint64 torrent_get_seed_ratio_mode(JsonObject * t)
gdouble torrent_get_seed_ratio_limit(JsonObject * t)
{
- return json_object_get_double_member(t, FIELD_SEED_RATIO_LIMIT);
+ return json_node_really_get_double(json_object_get_member(t, FIELD_SEED_RATIO_LIMIT));
}
gint64 torrent_get_download_limit(JsonObject * t)