mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
test_rtt: Fix compiler errors
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
6114f6dcc2
commit
7848dd7019
2 changed files with 8 additions and 6 deletions
|
@ -77,6 +77,11 @@ protected:
|
|||
|
||||
bool shutdown;
|
||||
|
||||
virtual int _read(struct Sample *smps[], unsigned cnt);
|
||||
|
||||
virtual int _write(struct Sample *smps[], unsigned cnt);
|
||||
|
||||
public:
|
||||
enum Mode {
|
||||
UNKNOWN,
|
||||
MIN,
|
||||
|
@ -87,11 +92,6 @@ protected:
|
|||
AT_LEAST_DURATION
|
||||
};
|
||||
|
||||
virtual int _read(struct Sample *smps[], unsigned cnt);
|
||||
|
||||
virtual int _write(struct Sample *smps[], unsigned cnt);
|
||||
|
||||
public:
|
||||
TestRTT(const uuid_t &id = {}, const std::string &name = "")
|
||||
: Node(id, name), task(CLOCK_MONOTONIC), formatter(nullptr),
|
||||
stream(nullptr), shutdown(false) {}
|
||||
|
|
|
@ -128,7 +128,7 @@ static enum TestRTT::Mode parseMode(const char *mode_str) {
|
|||
else if (strcmp(mode_str, "at_least_duration"))
|
||||
return TestRTT::Mode::AT_LEAST_DURATION;
|
||||
else
|
||||
return TestRTT : Mode::UNKNOWN;
|
||||
return TestRTT::Mode::UNKNOWN;
|
||||
}
|
||||
|
||||
int TestRTT::parse(json_t *json) {
|
||||
|
@ -303,6 +303,8 @@ int TestRTT::parse(json_t *json) {
|
|||
if (count_effective < count_duration)
|
||||
count_effective = count_duration;
|
||||
break;
|
||||
|
||||
default: {}
|
||||
}
|
||||
|
||||
auto filename = fmt::format("{}/{}_values{}_rate{}.log", output, prefix,
|
||||
|
|
Loading…
Add table
Reference in a new issue