Skip to content

Commit eae7a48

Browse files
committed
computer-info: reduce to 5s default
1 parent c49a3fb commit eae7a48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/createdb/computer_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from contextlib import suppress
44
from pathlib import Path
55

6-
INTERVAL = 30
7-
INTERVAL_STR = "30s"
6+
INTERVAL = 5
7+
INTERVAL_STR = "5s"
88

99
IS_LINUX = sys.platform == "linux"
1010
IS_MAC = sys.platform == "darwin"

library/multidb/allocate_torrents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def allocate_torrents():
8484
FROM media AS disks
8585
JOIN playlists AS computers ON computers.id = disks.playlists_id
8686
WHERE free >= :min_free_space
87-
AND (device_read_30s + device_write_30s) /(30) /2 <= :max_io_rate
87+
AND (device_read_5s + device_write_5s) /(30) /2 <= :max_io_rate
8888
ORDER BY free
8989
""",
9090
{

0 commit comments

Comments
 (0)