summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar DriverXX <thegio.f@gmail.com>2016-03-09 21:20:43 +0100
committerGravatar DriverXX <thegio.f@gmail.com>2016-03-09 21:20:43 +0100
commit8be6a4b22d2bccf71d68724db986c7fff89bf5d1 (patch)
treeec5f70d776060810431bb67eb63bfae1e8590f14 /src/torrent.c
parent3ea25988f88f4f080303eeb2ea5e8e54e41c08df (diff)
Add corrupted size to general panel
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/torrent.c b/src/torrent.c
index fc4eaa8..e5577ee 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -180,6 +180,11 @@ gint64 torrent_get_uploaded(JsonObject * t)
return json_object_get_int_member(t, FIELD_UPLOADEDEVER);
}
+gint64 torrent_get_corrupted(JsonObject * t)
+{
+ return json_object_get_int_member(t, FIELD_CORRUPTEVER);
+}
+
gint64 torrent_get_have_valid(JsonObject * t)
{
return json_object_get_int_member(t, FIELD_HAVEVALID);