From c10fcc5bd4a339e9b27fed98189b2e1fe8d14504 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 28 May 2024 13:51:00 +0200 Subject: [PATCH] test_rtt: Fix logging Signed-off-by: Steffen Vogel --- lib/nodes/test_rtt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodes/test_rtt.cpp b/lib/nodes/test_rtt.cpp index 98e17e3a2..f7a31c7b7 100644 --- a/lib/nodes/test_rtt.cpp +++ b/lib/nodes/test_rtt.cpp @@ -85,7 +85,7 @@ json_t *TestRTT::Case::getMetadata() { } double TestRTT::Case::getEstimatedDuration() const { - return (count_warmup + count) * rate; + return (count_warmup + count) / rate; } int TestRTT::prepare() { @@ -410,7 +410,7 @@ int TestRTT::_read(struct Sample *smps[], unsigned cnt) { if (current->count_warmup > 0) logger->info("Starting warmup phase. Sending {} samples...", current->count_warmup); - } else if (current->sent == current->count_warmup) + } else if (current->sent + current->sent_warmup == current->count_warmup) logger->info("Completed warmup phase. Sending {} samples...", current->count);