mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: Promote confirmed DM paths
This commit is contained in:
@@ -214,7 +214,9 @@ class PathHistoryService {
|
||||
pathBytes: selection.pathBytes.toList(),
|
||||
hopCount: selection.hopCount,
|
||||
hashSize: selection.hashSize,
|
||||
source: existing?.source ?? PathRecordSource.learned,
|
||||
source: success
|
||||
? PathRecordSource.learned
|
||||
: existing?.source ?? PathRecordSource.learned,
|
||||
successCount: (existing?.successCount ?? 0) + (success ? 1 : 0),
|
||||
failureCount: (existing?.failureCount ?? 0) + (success ? 0 : 1),
|
||||
lastRoundTripTimeMs: success
|
||||
|
||||
Reference in New Issue
Block a user