code: def status(self):
          '''
          :returns:
              A dictionary with the following:
  
          * 'num': Total number of hosts already probed
          * 'up': Number of hosts up
          * 'down': Number of hosts down
          * 'ratio': Ratio between 'up'/'down' as float
  
          Ratio:
  
          * ``100%`` up == `1.0`
          * ``10%`` up == `0.1`
          * ``0%`` up == `0.0`
          '''
  
          num = len(self.probe)
          up = len([h for h in self.probe if self.probe[h]['up']])
          ratio = up/num if num != 0 else 0  # over 9000!
  
          return dict(num=num, up=up, down=num-up, ratio=ratiof status(self):
          '''
          :returns:
              A dictionary with the following:
  
          * 'num': Total number of hosts already probed
          * 'up': Number of hosts up
          * 'down': Number of hosts down
          * 'ratio': Ratio between 'up'/'down' as float
  
          Ratio:
  
          * ``100%`` up == `1.0`
          * ``10%`` up == `0.1`
          * ``0%`` up == `0.0`
          '''
  
          num = len(self.probe)
          up = len([h for h in self.probe if self.probe[h]['up']])
          ratio = up/num if num != 0 else 0  # over 9000!
  
          return dict(num=num, up=up, down=num-up, ratio=ratio)
docs: :returns:
              A dictionary with the following:
  
          * 'num': Total number of hosts already probed
          * 'up': Number of hosts up
          * 'down': Number of hosts down
          * 'ratio': Ratio between 'up'/'down' as float
  
          Ratio:
  
          * ``100%`` up == `1.0`
          * ``10%`` up == `0.1`
          * ``0%`` up == `0.0`