Project

General

Profile

Revision 841

Remove redundant code that checks for new hosts in simulation

View differences:

branches/1.1/src/haizea/core/manager.py
771 771
        
772 772
        # Main loop
773 773
        while not self.done:
774
            # Check if there are any changes in the resource pool
775
            new_nodes = self.manager.scheduler.vm_scheduler.resourcepool.refresh_nodes()      
776
            for n in new_nodes:
777
                rt = slottable.create_resource_tuple_from_capacity(n.capacity)
778
                slottable.add_node(n.id, rt)   
779
            
780 774
            # Check to see if there are any leases which are ending prematurely.
781 775
            # Note that this is unique to simulation.
782 776
            prematureends = self.manager.scheduler.slottable.get_prematurely_ending_res(self.time)

Also available in: Unified diff