Commit dd8ed80c authored by root's avatar root
Browse files

Fixed query bug.

parent 43d060f1
......@@ -57,7 +57,7 @@ void DCDBQuery::doQuery(const char* hostname, std::list<std::string> sensors, DC
bool unitConvert = false;
bool scale = false;
double scalingFactor = 1;
std::string modifierStr, targetUnitStr;
std::string modifierStr;
DCDBUnit baseUnit = DCDBUnit_None, targetUnit = DCDBUnit_None;
/* Check if the sensor was requested in a different unit or with scaling factor */
......@@ -75,7 +75,7 @@ void DCDBQuery::doQuery(const char* hostname, std::list<std::string> sensors, DC
}
else {
unitConvert = true;
targetUnit = UnitConv::fromString(targetUnitStr);
targetUnit = UnitConv::fromString(modifierStr);
DCDBPublicSensor sen;
sensorConfig.getPublicSensorByName(sen, it->c_str());
......
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