From 1110f925ee3040d01b6542b036fe161414d1f735 Mon Sep 17 00:00:00 2001 From: Zoltan Nagy Date: Sat, 20 Sep 2014 00:32:52 +0200 Subject: [PATCH] Fix reading perfdata in compat/checkresultreader fixes #7369 Signed-off-by: Michael Friedrich --- AUTHORS | 1 + components/compat/checkresultreader.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 170e9e1ed..fa213293f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -24,3 +24,4 @@ Sam Kottler Tim Hardeck Tobias von der Krone Wolfgang Nieder +Zoltan Nagy diff --git a/components/compat/checkresultreader.cpp b/components/compat/checkresultreader.cpp index cf22abb6e..37920d36d 100644 --- a/components/compat/checkresultreader.cpp +++ b/components/compat/checkresultreader.cpp @@ -136,7 +136,7 @@ void CheckResultReader::ProcessCheckResultFile(const String& path) const CheckResult::Ptr result = make_shared(); std::pair 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"]));