Fix develop CI regressions in HopScaling and TLora T3-S3 builds (#10916)
* fix: address develop CI regressions * revert TLora T3-S3 partition table changes --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
GitHub
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
parent
392bac9d1c
commit
489cc7dd88
@@ -57,7 +57,7 @@ HopScalingModule::HopScalingModule() : concurrency::OSThread("HopScaling")
|
|||||||
void HopScalingModule::clear()
|
void HopScalingModule::clear()
|
||||||
{
|
{
|
||||||
memset(entries, 0, sizeof(entries));
|
memset(entries, 0, sizeof(entries));
|
||||||
count = 0;
|
this->count = 0;
|
||||||
samplingDenominator = DENOM_MIN;
|
samplingDenominator = DENOM_MIN;
|
||||||
filteringDenominator = DENOM_MIN;
|
filteringDenominator = DENOM_MIN;
|
||||||
filteringDenomHoldRollsRemaining = 0;
|
filteringDenomHoldRollsRemaining = 0;
|
||||||
@@ -179,7 +179,7 @@ void HopScalingModule::samplePacketForHistogram(uint32_t nodeId, uint8_t hopCoun
|
|||||||
entries[count].nodeHash = hash;
|
entries[count].nodeHash = hash;
|
||||||
entries[count].hops_away = hopCount;
|
entries[count].hops_away = hopCount;
|
||||||
entries[count].seenHoursAgo = 1u; // mark current hour
|
entries[count].seenHoursAgo = 1u; // mark current hour
|
||||||
count++;
|
this->count++;
|
||||||
} else {
|
} else {
|
||||||
LOG_WARN("[HOPSCALE] Histogram full at samp=1/%u (DENOM_MAX=%u); dropping node hash=0x%04x; hop recommendation may be "
|
LOG_WARN("[HOPSCALE] Histogram full at samp=1/%u (DENOM_MAX=%u); dropping node hash=0x%04x; hop recommendation may be "
|
||||||
"skewed!!!",
|
"skewed!!!",
|
||||||
@@ -392,7 +392,7 @@ void HopScalingModule::trimIfNeeded()
|
|||||||
newCount++;
|
newCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
count = newCount;
|
this->count = newCount;
|
||||||
|
|
||||||
// Step 2: if still too full, double the sampling denominator and remove non-matching entries.
|
// Step 2: if still too full, double the sampling denominator and remove non-matching entries.
|
||||||
if (getFillPercentage() >= FILL_HIGH_PCT && samplingDenominator < DENOM_MAX) {
|
if (getFillPercentage() >= FILL_HIGH_PCT && samplingDenominator < DENOM_MAX) {
|
||||||
|
|||||||
Reference in New Issue
Block a user