Commit d7b6e914 authored by lu43jih's avatar lu43jih
Browse files

Small fix in plugin generating script.

parent 0b820421
......@@ -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)
......
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment