ap-pauloafonso / ratio-spoof

A bittorrent ratio spoof tool
MIT License
90 stars 13 forks source link

usage of time.until on printer.go instead of manually decrementing the the interval on the ratiospoof.go #17

Closed ap-pauloafonso closed 3 years ago

ap-pauloafonso commented 3 years ago

Hi @jhuggart, i thought that your usage of time.untill was really good so i decided to simplify the current version (which manually decrements the interval on the ratiospoof.go in order to print it on the printer.go). Now we have a estimatedTimeToAnnounce on the ratiospoofstate struct, and for every print iteration we use time.until to find the remaining time.

What do you think about that? thank youu

ap-pauloafonso commented 3 years ago

Great, the solution is way more clean now, thank you very much @jhuggart :)