You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 14:33:52 +01: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:
@@ -244,7 +244,7 @@ async function fetchTx(freq, piCode, rdsPs) {
|
|||||||
now - lastFetchTime < fetchInterval ||
|
now - lastFetchTime < fetchInterval ||
|
||||||
Latitude.length < 2 ||
|
Latitude.length < 2 ||
|
||||||
freq < 87 ||
|
freq < 87 ||
|
||||||
Object.keys(piFreqIndex).length === 0 ||
|
Object.keys(localDb).length === 0 ||
|
||||||
(currentPiCode === piCode && currentRdsPs === rdsPs)
|
(currentPiCode === piCode && currentRdsPs === rdsPs)
|
||||||
) return Promise.resolve();
|
) return Promise.resolve();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user