diff options
author | Alan <alan@ajfx200.localdomain> | 2012-08-24 14:19:50 +0100 |
---|---|---|
committer | Alan <alan@ajfx200.localdomain> | 2012-08-24 14:19:50 +0100 |
commit | b0ad42a97cc5fb962d229b9c9743989e2f47216f (patch) | |
tree | d0e6cb0619e391e6d347c76b844f6ad83421a85c /src/torrent.c | |
parent | e5e0975a6302924c06da9426fca637950011ed20 (diff) |
consider seed ratios in the new cell renderer like Transmisson does, as well as some other scenarios so it behaves almost like the Transmission. lots of new fields added to the model for this.
Diffstat (limited to 'src/torrent.c')
-rw-r--r-- | src/torrent.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/torrent.c b/src/torrent.c index d605835..025118a 100644 --- a/src/torrent.c +++ b/src/torrent.c @@ -139,7 +139,12 @@ gboolean torrent_get_download_limited(JsonObject * t) return json_object_get_boolean_member(t, FIELD_DOWNLOAD_LIMITED); } -gint64 torrent_get_size(JsonObject * t) +gint64 torrent_get_total_size(JsonObject *t) +{ + return json_object_get_int_member(t, FIELD_TOTAL_SIZE); +} + +gint64 torrent_get_size_when_done(JsonObject * t) { return json_object_get_int_member(t, FIELD_SIZEWHENDONE); } |