From 37fe970153f774e962dff77133eb9aabdc187023 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 16 Oct 2013 22:08:21 +0200 Subject: [PATCH] feature im-collectd: removed unused variable --- src/im/InformationManager.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/im/InformationManager.cc b/src/im/InformationManager.cc index d5614b9ec4..d29f1d143b 100644 --- a/src/im/InformationManager.cc +++ b/src/im/InformationManager.cc @@ -143,8 +143,6 @@ void InformationManager::timer_action() time_t now; ostringstream oss; - struct stat sb; - set discovered_hosts; set::iterator it; @@ -180,14 +178,6 @@ void InformationManager::timer_action() return; } - if (stat(remotes_location.c_str(), &sb) == -1) - { - sb.st_mtime = 0; - - NebulaLog::log("InM",Log::ERROR,"Could not stat remotes directory, " - "will not update remotes."); - } - for(it=discovered_hosts.begin();it!=discovered_hosts.end();it++) { host = hpool->get(*it,true); @@ -255,6 +245,7 @@ void InformationManager::timer_action() { bool update_remotes = false; + //Force remotes update if the host has never been monitored. if (host->get_last_monitored() == 0) { update_remotes = true;