mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-27 20:57:31 +10:00
Refactor path handling in ChannelMessagePathScreen to improve logic for outgoing messages and channel messages
This commit is contained in:
@@ -64,7 +64,7 @@ class DirectRepeater {
|
||||
lastUpdated.millisecondsSinceEpoch;
|
||||
final maxAgeMs = maxAgeMinutes * 60 * 1000;
|
||||
final recencyScore = (maxAgeMs - ageMs).clamp(0, maxAgeMs);
|
||||
return (snr * snr).round() + recencyScore;
|
||||
return ((snr - 31.75) * 1000).round() + recencyScore;
|
||||
}
|
||||
|
||||
bool isStale() {
|
||||
|
||||
Reference in New Issue
Block a user