mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
node: minor cleanups
This commit is contained in:
parent
066febf06f
commit
a856f1801f
3 changed files with 12 additions and 9 deletions
|
@ -169,6 +169,11 @@ public:
|
|||
virtual
|
||||
int pause()
|
||||
{
|
||||
if (state != State::STARTED)
|
||||
return -1;
|
||||
|
||||
logger->info("Pausing node");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ int Node::read(struct Sample * smps[], unsigned cnt)
|
|||
logger->debug("Received {} samples of which {} have been skipped", nread, skipped);
|
||||
}
|
||||
else
|
||||
logger->debug( "Received {} samples", nread);
|
||||
logger->debug("Received {} samples", nread);
|
||||
|
||||
return rread;
|
||||
#else
|
||||
|
|
|
@ -138,10 +138,9 @@ int NodeCompat::pause()
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (state != State::STARTED)
|
||||
return -1;
|
||||
|
||||
logger->info("Pausing node");
|
||||
ret = Node::pause();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = _vt->pause
|
||||
? _vt->pause(this)
|
||||
|
@ -156,10 +155,9 @@ int NodeCompat::resume()
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (state != State::PAUSED)
|
||||
return -1;
|
||||
|
||||
logger->info("Resuming node");
|
||||
ret = Node::resume();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = _vt->resume
|
||||
? _vt->resume(this)
|
||||
|
|
Loading…
Add table
Reference in a new issue