16.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 41186ff3 authored by Michael Ott's avatar Michael Ott
Browse files

Fix function name parsing for aggregates

parent e43e147c
......@@ -290,10 +290,8 @@ void DCDBQuery::parseSensorSpecification(const std::string sensor, std::string&
queryCfg.aggregate = DCDB::AGGREGATE_MAX;
} else if (boost::iequals(functName, "avg")) {
queryCfg.aggregate = DCDB::AGGREGATE_AVG;
} else if (boost::iequals(functName, "min")) {
queryCfg.aggregate = DCDB::AGGREGATE_SUM;
} else if (boost::iequals(functName, "sum")) {
queryCfg.aggregate = DCDB::AGGREGATE_MIN;
queryCfg.aggregate = DCDB::AGGREGATE_SUM;
} else if (boost::iequals(functName, "count")) {
queryCfg.aggregate = DCDB::AGGREGATE_COUNT;
} else {
......
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