mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Fix thinko in last commit.
This commit is contained in:
parent
e8451018c6
commit
5aa809faeb
@ -40,10 +40,11 @@ Dictionary::Ptr NullCheckTask::ScriptFunc(const Service::Ptr&)
|
||||
|
||||
String output = "Hello from ";
|
||||
output += name;
|
||||
output += " | time=" + Convert::ToString(static_cast<long>(Utility::GetTime()));
|
||||
String perfdata = "time=" + Convert::ToString(Utility::GetTime());
|
||||
|
||||
Dictionary::Ptr cr = boost::make_shared<Dictionary>();
|
||||
cr->Set("output", output);
|
||||
cr->Set("performance_data_raw", perfdata);
|
||||
cr->Set("state", static_cast<ServiceState>(Utility::Random() % 4));
|
||||
|
||||
return cr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user