From d7a995e7528988f3f0edc3e2d45dbdacde7d0ba6 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 9 Mar 2013 00:00:43 +0100 Subject: [PATCH] status.dat/objects.cache: check_interval/retry_interval should be in minutes. --- components/compat/compatcomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp index 4279465d6..7bfc4ddc6 100644 --- a/components/compat/compatcomponent.cpp +++ b/components/compat/compatcomponent.cpp @@ -301,8 +301,8 @@ void CompatComponent::DumpHostObject(ostream& fp, const Host::Ptr& host) if (hc) { ObjectLock olock(hc); - fp << "\t" << "check_interval" << "\t" << hc->GetCheckInterval() << "\n" - << "\t" << "retry_interval" << "\t" << hc->GetRetryInterval() << "\n" + fp << "\t" << "check_interval" << "\t" << hc->GetCheckInterval() / 60.0 << "\n" + << "\t" << "retry_interval" << "\t" << hc->GetRetryInterval() / 60.0 << "\n" << "\t" << "max_check_attempts" << "\t" << hc->GetMaxCheckAttempts() << "\n" << "\t" << "active_checks_enabled" << "\t" << (hc->GetEnableActiveChecks() ? 1 : 0) << "\n" << "\t" << "passive_checks_enabled" << "\t" << (hc->GetEnablePassiveChecks() ? 1 : 0) << "\n"