Exemplo n.º 1
0
 def txtime(self, prob=None, length=1200):
     if prob is None: prob = self.prob()
     if prob == 0:
         return float('inf')
     else:
         return rates.tx_time(self.idx, length) / prob
Exemplo n.º 2
0
 def txtime(self, prob=None, length=1200):
     if prob is None: prob = self.prob()
     if prob == 0:
         return float('inf')
     else:
         return rates.tx_time(self.idx, length) / prob
Exemplo n.º 3
0
 def txtime_perfect(self, length=1200):
     return rates.tx_time(self.idx, length)
Exemplo n.º 4
0
 def txtime_perfect(self, length=1200):
     return rates.tx_time(self.idx, length)