From dcd5ca1c8e96d53318eaddf886db2742636fb4ed Mon Sep 17 00:00:00 2001 From: andrekir Date: Sat, 2 Nov 2024 06:21:32 -0300 Subject: [PATCH] fix: add missing PortNum for traceroute results --- .../main/java/com/geeksville/mesh/model/MetricsViewModel.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/model/MetricsViewModel.kt b/app/src/main/java/com/geeksville/mesh/model/MetricsViewModel.kt index 849bee969..7a7b0af8b 100644 --- a/app/src/main/java/com/geeksville/mesh/model/MetricsViewModel.kt +++ b/app/src/main/java/com/geeksville/mesh/model/MetricsViewModel.kt @@ -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, ) }