Commit 6ac6d9ee authored by Michael Ott's avatar Michael Ott
Browse files

Also print units in header if no conversion is performed

parent b777d38b
......@@ -98,6 +98,8 @@ void DCDBQuery::genOutput(std::list<DCDB::SensorDataStoreReading> &results, quer
}
if(it->second.unit != DCDB::Unit_None) {
std::cout << " (" << DCDB::UnitConv::toString(it->second.unit) << ")";
} else if (baseUnit != DCDB::Unit_None) {
std::cout << " (" << DCDB::UnitConv::toString(baseUnit) << ")";
}
}
std::cout << std::endl;
......
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