aria2p
aria2p copied to clipboard
Add option to top interface to change update interval time
- add a parameter
update_interval
to init method of classinterface.Interface
. This value is used to change thesleep
value:self.sleep = update_interval / self.frames
- Example with 1 second interval (default): sleep = 1 / 200 = 0.005
- Example with 2 seconds interval: sleep = 2 / 200 = 0.01
- add an option to the
top
subparser of the main CLI parser (incli.get_parser
function). Something like"-i", "--update-interval", type=float, default=1.0
- write tests in
tests/test_interface.py
- update documentation