mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
minor codestyle fixes
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
664e1e725a
commit
7f2f0d14c6
2 changed files with 8 additions and 10 deletions
|
@ -411,14 +411,12 @@ public:
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool
|
||||
isInternal() const
|
||||
bool isInternal() const
|
||||
{
|
||||
return getFlags() & (int) Flags::INTERNAL;
|
||||
}
|
||||
|
||||
bool
|
||||
isHidden() const
|
||||
bool isHidden() const
|
||||
{
|
||||
return isInternal() || getFlags() & (int) Flags::HIDDEN;
|
||||
}
|
||||
|
|
|
@ -181,13 +181,13 @@ int ExecNode::_write(struct Sample * smps[], unsigned cnt)
|
|||
|
||||
const std::string & ExecNode::getDetails()
|
||||
{
|
||||
std::string wd = working_dir;
|
||||
if (wd.empty()) {
|
||||
char buf[128];
|
||||
wd = getcwd(buf, sizeof(buf));
|
||||
}
|
||||
|
||||
if (details.empty()) {
|
||||
std::string wd = working_dir;
|
||||
if (wd.empty()) {
|
||||
char buf[128];
|
||||
wd = getcwd(buf, sizeof(buf));
|
||||
}
|
||||
|
||||
details = fmt::format("exec={}, shell={}, flush={}, #environment={}, #arguments={}, working_dir={}",
|
||||
command,
|
||||
shell ? "yes" : "no",
|
||||
|
|
Loading…
Add table
Reference in a new issue