I was trying to find an alternative to rsync for copying data over wan circuit and found rclone. I am currently evaluating the use-case and hopefully it works for our requirement.
While going through the documentation, i found that, each sync can be set/started with '-bwlimit' option that will limit the amount of data that can be transferred.
I am curious to understand, how network bandwidth limit is achieved in rclone? I tried to look at the source code where i can find this logic but i failed. I wanted to understand the logic that was used to implement this feature.
Greatly appreciate if someone can help me understand the logic.