mirror of https://github.com/Icinga/icinga2.git
More Win64 build fixes.
This commit is contained in:
parent
cafc84d480
commit
8409b55018
|
@ -575,7 +575,7 @@ void ClusterListener::NewClientHandler(const Socket::Ptr& client, TlsRole role)
|
|||
}
|
||||
}
|
||||
|
||||
Log(LogInformation, "cluster", "Sending " + Convert::ToString(config->GetLength()) + " config files to endpoint '" + endpoint->GetName() + "'.");
|
||||
Log(LogInformation, "cluster", "Sending " + Convert::ToString(static_cast<long>(config->GetLength())) + " config files to endpoint '" + endpoint->GetName() + "'.");
|
||||
|
||||
Dictionary::Ptr params = boost::make_shared<Dictionary>();
|
||||
params->Set("identity", GetIdentity());
|
||||
|
|
|
@ -112,10 +112,10 @@ void DbConnection::ProgramStatusHandler(void)
|
|||
query3.WhereCriteria->Set("instance_id", 0); /* DbConnection class fills in real ID */
|
||||
DbObject::OnQuery(query3);
|
||||
|
||||
InsertRuntimeVariable("total_services", DynamicType::GetObjects<Service>().size());
|
||||
InsertRuntimeVariable("total_scheduled_services", DynamicType::GetObjects<Service>().size());
|
||||
InsertRuntimeVariable("total_hosts", DynamicType::GetObjects<Host>().size());
|
||||
InsertRuntimeVariable("total_scheduled_hosts", DynamicType::GetObjects<Host>().size());
|
||||
InsertRuntimeVariable("total_services", static_cast<long>(DynamicType::GetObjects<Service>().size()));
|
||||
InsertRuntimeVariable("total_scheduled_services", static_cast<long>(DynamicType::GetObjects<Service>().size()));
|
||||
InsertRuntimeVariable("total_hosts", static_cast<long>(DynamicType::GetObjects<Host>().size()));
|
||||
InsertRuntimeVariable("total_scheduled_hosts", static_cast<long>(DynamicType::GetObjects<Host>().size()));
|
||||
}
|
||||
|
||||
void DbConnection::CleanUpHandler(void)
|
||||
|
|
|
@ -885,7 +885,7 @@ void ServiceDbObject::AddNotificationHistory(const Service::Ptr& service, const
|
|||
}
|
||||
|
||||
fields1->Set("escalated", 0);
|
||||
fields1->Set("contacts_notified", users.size());
|
||||
fields1->Set("contacts_notified", static_cast<long>(users.size()));
|
||||
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
|
||||
|
||||
query1.Fields = fields1;
|
||||
|
|
Loading…
Reference in New Issue