From 1b6c3e62135bfba088aae84ac7b2bbfc05be5838 Mon Sep 17 00:00:00 2001 From: Igor Kulman Date: Sun, 21 Sep 2025 22:21:20 +0200 Subject: [PATCH] Use single interval config instead of separate rate and torrent intervals --- src/components/services/Transmission.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/components/services/Transmission.vue b/src/components/services/Transmission.vue index 6b5ca2b..d20923d 100644 --- a/src/components/services/Transmission.vue +++ b/src/components/services/Transmission.vue @@ -78,15 +78,11 @@ export default { return; } - const rateInterval = parseInt(this.item.rateInterval, 10) || 0; - const torrentInterval = parseInt(this.item.torrentInterval, 10) || 0; + const interval = parseInt(this.item.interval, 10) || 0; - // Set up intervals if configured (rate and torrent intervals can be different) - if (rateInterval > 0) { - setInterval(() => this.getStats(), rateInterval); - } - if (torrentInterval > 0) { - setInterval(() => this.getStats(), torrentInterval); + // Set up interval if configured + if (interval > 0) { + setInterval(() => this.getStats(), interval); } // Initial fetch