mirror of https://github.com/Icinga/icinga2.git
Eliminate time(NULL) in StatusDataWriter
This commit is contained in:
parent
ef7c80959d
commit
403ab5c357
|
@ -390,7 +390,7 @@ void StatusDataWriter::DumpCheckableStatusAttrs(std::ostream& fp, const Checkabl
|
|||
"\t" "max_attempts=" << checkable->GetMaxCheckAttempts() << "\n"
|
||||
"\t" "last_state_change=" << static_cast<long>(checkable->GetLastStateChange()) << "\n"
|
||||
"\t" "last_hard_state_change=" << static_cast<long>(checkable->GetLastHardStateChange()) << "\n"
|
||||
"\t" "last_update=" << static_cast<long>(time(NULL)) << "\n"
|
||||
"\t" "last_update=" << static_cast<long>(Utility::GetTime()) << "\n"
|
||||
"\t" "notifications_enabled" "\t" << Convert::ToLong(checkable->GetEnableNotifications()) << "\n"
|
||||
"\t" "active_checks_enabled=" << Convert::ToLong(checkable->GetEnableActiveChecks()) << "\n"
|
||||
"\t" "passive_checks_enabled=" << Convert::ToLong(checkable->GetEnablePassiveChecks()) << "\n"
|
||||
|
|
Loading…
Reference in New Issue