Download Rate For Folder For Btsync 1.4


Syveren

Recommended Posts

Hello! 
 

Is there api for getting download rate for concrete folder for btsync 1.4 ? 
I tryed to get it by api method get_files: (have_pieces - have_pieces_old) / time_elapsed * (total_size/total_pieces). But result differ from rate in btsync gui. (I use pieces,instead of size, because size return same value each time)

 

Any clues?)

 

Thanks!

Edited by Syveren
Link to comment
Share on other sites

  • 4 weeks later...

@RomanZ
 

Thanks for reply!

 

I tested get_folder_peers function and noticed that download value is same for every peer from result list.

Is it amount of data to be download and always same for all peers?  If yes, I can use download value from first peer. But why,in this case, download value not in  get_folder api function, for example?).
Or I am mistaken and not guarantee that values will be the same. Please, explain purpose of download value from get_folder_peers in this case (if peers have different download values)?

Thanks!
 

Edited by Syveren
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.