Fix reading perfdata in compat/checkresultreader

fixes #7369

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
This commit is contained in:
Zoltan Nagy 2014-09-20 00:32:52 +02:00 committed by Michael Friedrich
parent 60a0ee8fec
commit 1110f925ee
2 changed files with 2 additions and 1 deletions

View File

@ -24,3 +24,4 @@ Sam Kottler <shk@linux.com>
Tim Hardeck <thardeck@suse.de>
Tobias von der Krone <tobias@vonderkrone.info>
Wolfgang Nieder <wnd@gmx.net>
Zoltan Nagy <abesto@abesto.net>

View File

@ -136,7 +136,7 @@ void CheckResultReader::ProcessCheckResultFile(const String& path) const
CheckResult::Ptr result = make_shared<CheckResult>();
std::pair<String, Value> co = PluginUtility::ParseCheckOutput(attrs["output"]);
result->SetOutput(co.first);
result->SetPerformanceData(co.second);
result->SetPerformanceData(PluginUtility::SplitPerfdata(co.second));
result->SetState(PluginUtility::ExitStatusToState(Convert::ToLong(attrs["return_code"])));
result->SetExecutionStart(Convert::ToDouble(attrs["start_time"]));
result->SetExecutionEnd(Convert::ToDouble(attrs["finish_time"]));