decrease update interval
This commit is contained in:
parent
c81ce67f92
commit
79616c5ed5
|
@ -74,7 +74,7 @@ class Watch(threading.Thread):
|
||||||
if self.stopped():
|
if self.stopped():
|
||||||
break
|
break
|
||||||
torrents[n] = get_all(n)
|
torrents[n] = get_all(n)
|
||||||
self._stop_event.wait(2)
|
self._stop_event.wait(0.5)
|
||||||
|
|
||||||
|
|
||||||
def size_units(rate):
|
def size_units(rate):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
function load() {
|
function load() {
|
||||||
//let intervalID = window.setInterval(get_active_torrents_ajax, 20000);
|
//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() {
|
function get_active_torrents_ajax() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user