1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

test_rtt: Fix logging

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-05-28 13:51:00 +02:00 committed by pipeacosta
parent 6c6d37d00d
commit 0765e456fa

View file

@ -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);