Syveren Posted March 25, 2015 Report Share Posted March 25, 2015 (edited) 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 March 25, 2015 by Syveren Quote Link to comment Share on other sites More sharing options...
RomanZ Posted April 17, 2015 Report Share Posted April 17, 2015 @Syveren, We don't have a per-folder speed API call. I can advise 2 ways:1) either use get_speed API call - though it is per whole app, not per folder2) or try to check the get_folder_peers call. It indicates the amount of data to download and upload in bytes. Quote Link to comment Share on other sites More sharing options...
Syveren Posted April 23, 2015 Author Report Share Posted April 23, 2015 (edited) @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 April 23, 2015 by Syveren Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.