mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Fix -Wenum-compare warnings
This commit is contained in:
parent
7b4697a237
commit
6bd89821cd
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ void GraphiteWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
|
|||
std::vector<std::pair<String, double>> metadata;
|
||||
if (GetEnableSendMetadata()) {
|
||||
metadata = {
|
||||
{"state", service ? service->GetState() : host->GetState()},
|
||||
{"state", service ? static_cast<unsigned int>(service->GetState()) : static_cast<unsigned int>(host->GetState())},
|
||||
{"current_attempt", checkable->GetCheckAttempt()},
|
||||
{"max_check_attempts", checkable->GetMaxCheckAttempts()},
|
||||
{"state_type", checkable->GetStateType()},
|
||||
|
|
|
|||
Loading…
Reference in a new issue