1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature im-collectd: removed unused variable

This commit is contained in:
Ruben S. Montero 2013-10-16 22:08:21 +02:00
parent 74edd8b23d
commit 37fe970153

View File

@ -143,8 +143,6 @@ void InformationManager::timer_action()
time_t now;
ostringstream oss;
struct stat sb;
set<int> discovered_hosts;
set<int>::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;