summaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-12-20 17:48:13 +0100
committermichele papalini <micpapal@cisco.com>2019-12-20 17:48:13 +0100
commit82f51e4208ff86c034f94bd99ff367301e2faa4f (patch)
tree52d3363cd92652a98fb5abe2462d160782e54bd6 /libtransport
parent724ca3128c772c76df20571211a77e7566285ff6 (diff)
[HICN-466] expose rtt stats to appliaction in rtc transport
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: If7af2154f5054a475521bf84c8d455ad3058bbb9
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/hicn/transport/protocols/rtc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/protocols/rtc.cc b/libtransport/src/hicn/transport/protocols/rtc.cc
index fb09373b1..559e86592 100644
--- a/libtransport/src/hicn/transport/protocols/rtc.cc
+++ b/libtransport/src/hicn/transport/protocols/rtc.cc
@@ -283,6 +283,7 @@ void RTCTransportProtocol::updateStats(uint32_t round_duration) {
// Send the stats to the app
stats_.updateQueuingDelay(queuingDelay_);
stats_.updateLossRatio(lossRate_);
+ stats_.updateAverageRtt(pathTable_[producerPathLabels_[1]]->getMinRtt());
(*stats_callback)(*socket_, stats_);
}