[haizea-commit] r841 - branches/1.1/src/haizea/core

haizea-commit at mailman.cs.uchicago.edu haizea-commit at mailman.cs.uchicago.edu
Wed Oct 20 14:43:02 CDT 2010


Author: borja
Date: 2010-10-20 14:43:02 -0500 (Wed, 20 Oct 2010)
New Revision: 841

Modified:
   branches/1.1/src/haizea/core/manager.py
Log:
Remove redundant code that checks for new hosts in simulation

Modified: branches/1.1/src/haizea/core/manager.py
===================================================================
--- branches/1.1/src/haizea/core/manager.py	2010-10-20 19:42:37 UTC (rev 840)
+++ branches/1.1/src/haizea/core/manager.py	2010-10-20 19:43:02 UTC (rev 841)
@@ -771,12 +771,6 @@
         
         # Main loop
         while not self.done:
-            # Check if there are any changes in the resource pool
-            new_nodes = self.manager.scheduler.vm_scheduler.resourcepool.refresh_nodes()      
-            for n in new_nodes:
-                rt = slottable.create_resource_tuple_from_capacity(n.capacity)
-                slottable.add_node(n.id, rt)   
-            
             # Check to see if there are any leases which are ending prematurely.
             # Note that this is unique to simulation.
             prematureends = self.manager.scheduler.slottable.get_prematurely_ending_res(self.time)



More information about the Haizea-commit mailing list