1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00
Munin-Contrib/plugins/torrent
Kris-Mikael Krister 99c788031d
Improve code readability and consistency
This commit:

- Changes to Python 3 template string rather than the formatted string
  syntax.
- Calls the Deluge API once per plugin run for the "states" mode, rather
  than once per torrent. Lines of code are reduced. The readability is
  improved too, since the API call is similar to how the "peers" mode
  works.
- Updates the label for the "state" entry "paused" to match it's name in the
  libtorrent API: "stopped". "Queued" is split into "Queued seeding" and
  "Queued downloads" to match the libtorrent API too.
2021-08-11 14:41:27 +02:00
..
deluge_ Improve code readability and consistency 2021-08-11 14:41:27 +02:00