mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-23 02:07:32 +00:00
Merge branch 'develop' into multi-message-Storage
This commit is contained in:
@@ -57,14 +57,7 @@ class Default
|
|||||||
// Note: Kept as uint32_t to match the public API parameter type
|
// Note: Kept as uint32_t to match the public API parameter type
|
||||||
static float congestionScalingCoefficient(uint32_t numOnlineNodes)
|
static float congestionScalingCoefficient(uint32_t numOnlineNodes)
|
||||||
{
|
{
|
||||||
// Increase frequency of broadcasts for small networks regardless of preset
|
if (numOnlineNodes <= 40) {
|
||||||
if (numOnlineNodes <= 10) {
|
|
||||||
return 0.6;
|
|
||||||
} else if (numOnlineNodes <= 20) {
|
|
||||||
return 0.7;
|
|
||||||
} else if (numOnlineNodes <= 30) {
|
|
||||||
return 0.8;
|
|
||||||
} else if (numOnlineNodes <= 40) {
|
|
||||||
return 1.0;
|
return 1.0;
|
||||||
} else {
|
} else {
|
||||||
float throttlingFactor = 0.075;
|
float throttlingFactor = 0.075;
|
||||||
|
|||||||
Reference in New Issue
Block a user