}
}
- 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());
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)
}
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;