diff --git a/src/LogCompressor.cc b/src/LogCompressor.cc index 5737c7379ac2131d8d989e22dd8989da6c0a9e2b..9b5dcc1964fc264584620746bd76cacf73d3d580 100644 --- a/src/LogCompressor.cc +++ b/src/LogCompressor.cc @@ -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);