Reduce update interval for max period to 50%

This commit is contained in:
samuelbles07
2024-10-21 00:15:59 +07:00
parent 2cda36ed0d
commit 2ffe0a62aa

View File

@ -1176,5 +1176,6 @@ void setMeasurementMaxPeriod() {
}
int calculateMaxPeriod(int updateInterval) {
return (SERVER_SYNC_INTERVAL - (SERVER_SYNC_INTERVAL * 0.1)) / updateInterval;
// 0.5 is 50% reduced interval for max period
return (SERVER_SYNC_INTERVAL - (SERVER_SYNC_INTERVAL * 0.5)) / updateInterval;
}