Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
d7b6e914
Commit
d7b6e914
authored
Dec 05, 2018
by
lu43jih
Browse files
Small fix in plugin generating script.
parent
0b820421
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
d7b6e914
...
...
@@ -70,8 +70,10 @@ install_conf: $(foreach p,global $(PLUGINS),config/$(p).conf)
install
:
$(TARGET) install_lib
install
$(TARGET)
$(DCDBDEPLOYPATH)
/bin/
@
echo
"to copy configuration files type:"
@
echo
" > make install_conf"
@
echo
"Done with installation."
@
echo
"====================================="
@
echo
"To copy the configuration files type:"
@
echo
" > make install_conf"
src/Sensor.o
:
CXXFLAGS+= $(PLUGINFLAGS)
src/SensorGroup.o
:
CXXFLAGS+= $(PLUGINFLAGS)
...
...
pluginGenerator/SensorGroup_cpp.sh
View file @
d7b6e914
...
...
@@ -82,8 +82,7 @@ void ${PLUGIN_NAME}SensorGroup::readAsync() {
uint64_t now = getTimestamp();
read();
if (_timer && _keepRunning) {
uint64_t next = now + MS_TO_NS(_interval);
_timer->expires_at(timestamp2ptime(next));
_timer->expires_at(nextReadingTime());
_pendingTasks++;
_timer->async_wait(std::bind(&
${
PLUGIN_NAME
}
SensorGroup::readAsync, this));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment