From 79616c5ed510ad93f421564e4ab6aeb86d928d3a Mon Sep 17 00:00:00 2001 From: iou1name Date: Thu, 12 Sep 2019 09:49:10 -0400 Subject: [PATCH] decrease update interval --- rtorrent.py | 2 +- static/aberrant.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtorrent.py b/rtorrent.py index ca75640..9fae398 100644 --- a/rtorrent.py +++ b/rtorrent.py @@ -74,7 +74,7 @@ class Watch(threading.Thread): if self.stopped(): break torrents[n] = get_all(n) - self._stop_event.wait(2) + self._stop_event.wait(0.5) def size_units(rate): diff --git a/static/aberrant.js b/static/aberrant.js index f9d0a0e..01ec709 100644 --- a/static/aberrant.js +++ b/static/aberrant.js @@ -1,6 +1,6 @@ function load() { //let intervalID = window.setInterval(get_active_torrents_ajax, 20000); - let intervalID = window.setInterval(get_active_torrents, 20000); + let intervalID = window.setInterval(get_active_torrents, 5000); } function get_active_torrents_ajax() {