fix: add missing PortNum for traceroute results

pull/1375/head
andrekir 2024-11-02 06:21:32 -03:00
rodzic b321e5393d
commit dcd5ca1c8e
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -70,11 +70,10 @@ class MetricsViewModel @Inject constructor(
val tracerouteState = destNum.flatMapLatest { destNum ->
combine(
meshLogRepository.getLogsFrom(nodeNum = 0, PortNum.TRACEROUTE_APP_VALUE),
meshLogRepository.getMeshPacketsFrom(destNum),
meshLogRepository.getMeshPacketsFrom(destNum, PortNum.TRACEROUTE_APP_VALUE),
) { request, response ->
val test = request.filter { it.hasValidTraceroute() }
TracerouteLogState(
requests = test,
requests = request.filter { it.hasValidTraceroute() },
results = response,
)
}