B #5558: Faster transition host DISABLED->MONITORED (#1497)

This commit is contained in:
Pavel Czerný authored and GitHub committed 2021-10-08 17:48:27 +02:00
1 parent 03c6397266
commit 7ea2ae04ef
1 file changed
+8 -1
+8 -1
View File
@@ -316,7 +316,14 @@ void Host::update_wilds()
void Host::enable()
{
state = INIT;
if (state == DISABLED && host_share.get_total_cpu() > 0)
{
state = MONITORED;
}
else
{
state = INIT;
}
};
/* -------------------------------------------------------------------------- */