Commit 3e0a98e5 authored by Micha Mueller's avatar Micha Mueller
Browse files

Fix typo in PDU plugin source

parent e3fd0ec5
......@@ -52,7 +52,7 @@ void PDUSensor::startPolling(boost::asio::io_service& io) {
_readingQueue = new boost::lockfree::spsc_queue<reading_t>(1024);
}
if (_pdu) {
_pdu->initalizeStrand(io);
_pdu->initializeStrand(io);
_timer = new boost::asio::deadline_timer(io, boost::posix_time::seconds(0));
_timer->async_wait(_pdu->getStrand()->wrap(std::bind(&PDUSensor::readAsync, this)));
} else {
......
......@@ -84,7 +84,7 @@ uint64_t PDUUnit::readValue(const xmlPathVector_t& xmlPath) {
return stoul(reading);
}
void PDUUnit::initalizeStrand(boost::asio::io_service& io) {
void PDUUnit::initializeStrand(boost::asio::io_service& io) {
if (!_strand) {
_strand = new boost::asio::io_service::strand(io);
}
......
......@@ -5,8 +5,8 @@
* Author: Micha Mueller
*/
#ifndef SRC_SENSORS_PDU_PDUUNIT_H_
#define SRC_SENSORS_PDU_PDUUNIT_H_
#ifndef PDUUNIT_H_
#define PDUUNIT_H_
#include "../../Sensor.h" //only for logging
......@@ -53,7 +53,7 @@ public:
return _request;
}
void initalizeStrand(boost::asio::io_service& io);
void initializeStrand(boost::asio::io_service& io);
boost::asio::io_service::strand* getStrand() const {
return _strand;
......@@ -85,4 +85,4 @@ private:
boost::log::sources::severity_logger<boost::log::trivial::severity_level> lg;
};
#endif /* SRC_SENSORS_PDU_PDUUNIT_H_ */
#endif /* PDUUNIT_H_ */
Supports Markdown
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