mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
Bugfix to avoid CPU spike of checking big object length
Don't check the length of the generated indexed database as it's big and causes a lag
This commit is contained in:
+1
-1
@@ -244,7 +244,7 @@ async function fetchTx(freq, piCode, rdsPs) {
|
||||
now - lastFetchTime < fetchInterval ||
|
||||
Latitude.length < 2 ||
|
||||
freq < 87 ||
|
||||
Object.keys(piFreqIndex).length === 0 ||
|
||||
Object.keys(localDb).length === 0 ||
|
||||
(currentPiCode === piCode && currentRdsPs === rdsPs)
|
||||
) return Promise.resolve();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user