Skip to content

Commit

Permalink
feat: add qb/sab limit script
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Oct 8, 2024
1 parent 866bfa6 commit 1e8b4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qbtools/commands/limiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def __init__(app, logger):
qbittorrent_queue, qbittorrent_current_limit = qbittorrent_data(app)
sabnzbd_queue, sabnzbd_current_limit = sabnzbd_data(app)

logger.info(f"qBittorrent: {qbittorrent_queue} item(s) @ {qbittorrent_current_limit} MB/s")
logger.info(f"SabNZBD: {sabnzbd_queue} item(s) @ max {sabnzbd_current_limit} MB/s")
logger.debug(f"qBittorrent: {qbittorrent_queue} item(s) @ {qbittorrent_current_limit} MB/s")
logger.debug(f"SabNZBD: {sabnzbd_queue} item(s) @ max {sabnzbd_current_limit} MB/s")

percentage = app.limit_percent if qbittorrent_queue > 0 and sabnzbd_queue > 0 else app.max_percent

Expand Down

0 comments on commit 1e8b4e2

Please sign in to comment.