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:
parent
6c6d37d00d
commit
0765e456fa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue