Registered Member
|
Hi,
here is my script code:
This code works but for some torrents it prints negative totalSize. Same situation happens with tor.bytesDownloaded(). Am i doing something wrong or it is a bug? |
Moderator
|
It's a bug in krosspython which appears to be handling 64bit integers badly when it passes them to python. It seems to threat them as 32bit integers.
|
Registered Member
|
Ah it appears there is no way to retrieve torrent progress information in script now
Any chances that you will fix plugin api in future releases? For example to change returning value from integer to string in these functions, or to add extra functions which returns torrent progress in megabytes, or function which shows percentage of download, which is done. |
Moderator
|
There is a very big chance this is going to happen, with this one included, I have reported 3 krosspython bugs, the first 2 of them haven't been fixed yet, and they have been reported quite some time ago. In fact one of them (a memory leak), has forced me to change the API to avoid the memory leak. |
Registered Member
|
> In fact one of them (a memory leak), has forced me to change the API to avoid the memory leak.
Is memmory leak already fixed in KTorrent 3.3.4? It's KTorrent version in Ubuntu 10.04 repository Because this script eats all my memmory in minutes
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]