diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 59835a3ee..d71d0b8ca 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11327,7 +11327,7 @@ cur = ThreadUpdater.outdateCount || 1; limit = d.hidden ? 7 : 10; j = cur <= limit ? cur : limit; - cur = ((i * 0.1).floor() || 1) * j * j; + cur = (Math.floor(i * 0.1) || 1) * j * j; ThreadUpdater.seconds = cur > i ? cur <= 300 ? cur : 300 : i; } else { ThreadUpdater.seconds = i; diff --git a/builds/crx/script.js b/builds/crx/script.js index 4d58f83d3..a6d692696 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11313,7 +11313,7 @@ cur = ThreadUpdater.outdateCount || 1; limit = d.hidden ? 7 : 10; j = cur <= limit ? cur : limit; - cur = ((i * 0.1).floor() || 1) * j * j; + cur = (Math.floor(i * 0.1) || 1) * j * j; ThreadUpdater.seconds = cur > i ? cur <= 300 ? cur : 300 : i; } else { ThreadUpdater.seconds = i; diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 8854457de..dde86f610 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -158,7 +158,7 @@ ThreadUpdater = j = if cur <= limit then cur else limit # 1 second to 100, 30 to 300. - cur = ((i * 0.1).floor() or 1) * j * j + cur = (Math.floor(i * 0.1) or 1) * j * j ThreadUpdater.seconds = if cur > i if cur <= 300