percentDone value

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Purity3726
Posts: 1
Joined: Tue Sep 19, 2023 7:05 am

percentDone value

Post by Purity3726 »

I have just begun developing an application to control transmission using the rpc protocol. When trying to list all the torrents, I had used "percentDone" field expecting it to return the percentage it has downloaded but it always returned 1. Then I realized there was another field "percentComplete" which was what should've used in the first place.

I am curious about "percentDone" though. Why was it returning 1 in all the torrents? What does it signify?

Thank you!
killemov
Posts: 542
Joined: Sat Jul 31, 2010 5:04 pm

Re: percentDone value

Post by killemov »

It returns 1 for all complete torrents. 0 ... 0.5 ... 1 => 0% ... 50% ... 100%
Post Reply