mirror of https://github.com/Icinga/icinga2.git
parent
ad14ff6d6b
commit
18d317faf9
|
@ -144,16 +144,18 @@ Value ApiEvents::CheckResultAPIHandler(const MessageOrigin& origin, const Dictio
|
||||||
|
|
||||||
Array::Ptr rperf = make_shared<Array>();
|
Array::Ptr rperf = make_shared<Array>();
|
||||||
|
|
||||||
ObjectLock olock(vperf);
|
if (vperf) {
|
||||||
BOOST_FOREACH(const Value& vp, vperf) {
|
ObjectLock olock(vperf);
|
||||||
Value p;
|
BOOST_FOREACH(const Value& vp, vperf) {
|
||||||
|
Value p;
|
||||||
|
|
||||||
if (vp.IsObjectType<Dictionary>()) {
|
if (vp.IsObjectType<Dictionary>()) {
|
||||||
PerfdataValue::Ptr val = make_shared<PerfdataValue>();
|
PerfdataValue::Ptr val = make_shared<PerfdataValue>();
|
||||||
Deserialize(val, vp, true);
|
Deserialize(val, vp, true);
|
||||||
rperf->Add(val);
|
rperf->Add(val);
|
||||||
} else
|
} else
|
||||||
rperf->Add(vp);
|
rperf->Add(vp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cr->SetPerformanceData(rperf);
|
cr->SetPerformanceData(rperf);
|
||||||
|
|
Loading…
Reference in New Issue