Commit 68e011ed authored by lm's avatar lm

Improved log compressor to write out NaN for unknown values

parent f4418aaf
......@@ -81,6 +81,11 @@ void LogCompressor::run()
QString time = parts.first();
QString field = parts.at(2);
QString value = parts.at(3);
// Enforce NaN if no value is present
if (value.length() == 0 || value == "" || value == " " || value == "\t" || value == "\n")
{
value = "NaN";
}
// Get matching output line
quint64 index = times->indexOf(time);
QString outLine = outLines->at(index);
......
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