mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Fixed an issue where reApplyPeriodically could go crazy.
This commit is contained in:
parent
a8897fba00
commit
8ee6fe07cc
@ -240,6 +240,7 @@ function displayVersion() {
|
|||||||
* @param {number} seconds Interval in seconds between each apply.
|
* @param {number} seconds Interval in seconds between each apply.
|
||||||
*/
|
*/
|
||||||
function reApplyPeriodically(seconds) {
|
function reApplyPeriodically(seconds) {
|
||||||
|
seconds = parseInt(seconds) >= 0 ? parseInt(seconds) : 0;
|
||||||
appendLog(`reApplyPeriodically(): seconds = ${seconds}`);
|
appendLog(`reApplyPeriodically(): seconds = ${seconds}`);
|
||||||
appendLog(`reApplyPeriodically(): document.reapplyLoop = ${document.reapplyLoop}`);
|
appendLog(`reApplyPeriodically(): document.reapplyLoop = ${document.reapplyLoop}`);
|
||||||
clearInterval(document.reapplyLoop);
|
clearInterval(document.reapplyLoop);
|
||||||
|
Loading…
Reference in New Issue
Block a user