catchunks: adapt to recent RttEstimator API changes
Refs: #4887
Change-Id: Ie39a1c5f7ad8b225397f41bb0f3c4d7c2a9cdb2a
diff --git a/tools/chunks/catchunks/statistics-collector.cpp b/tools/chunks/catchunks/statistics-collector.cpp
index 8984e78..2a65025 100644
--- a/tools/chunks/catchunks/statistics-collector.cpp
+++ b/tools/chunks/catchunks/statistics-collector.cpp
@@ -42,10 +42,10 @@
rttEstimator.afterMeasurement.connect(
[this] (const RttEstimator::Sample& sample) {
m_osRtt << *sample.segNum << '\t'
- << sample.rtt.count() << '\t'
- << sample.rttVar.count() << '\t'
- << sample.sRtt.count() << '\t'
- << sample.rto.count() << '\n';
+ << sample.rtt.count() / 1e6 << '\t'
+ << sample.rttVar.count() / 1e6 << '\t'
+ << sample.sRtt.count() / 1e6 << '\t'
+ << sample.rto.count() / 1e6 << '\n';
});
}