mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
ad14ff6d6b
commit
18d317faf9
@ -144,6 +144,7 @@ Value ApiEvents::CheckResultAPIHandler(const MessageOrigin& origin, const Dictio
|
|||||||
|
|
||||||
Array::Ptr rperf = make_shared<Array>();
|
Array::Ptr rperf = make_shared<Array>();
|
||||||
|
|
||||||
|
if (vperf) {
|
||||||
ObjectLock olock(vperf);
|
ObjectLock olock(vperf);
|
||||||
BOOST_FOREACH(const Value& vp, vperf) {
|
BOOST_FOREACH(const Value& vp, vperf) {
|
||||||
Value p;
|
Value p;
|
||||||
@ -155,6 +156,7 @@ Value ApiEvents::CheckResultAPIHandler(const MessageOrigin& origin, const Dictio
|
|||||||
} else
|
} else
|
||||||
rperf->Add(vp);
|
rperf->Add(vp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cr->SetPerformanceData(rperf);
|
cr->SetPerformanceData(rperf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user