Fixed buggy capacity computation.
Need to re-run things to make the numbers are right still.
This commit is contained in:
parent
2cbe95d39d
commit
8712493c4e
1 changed files with 2 additions and 1 deletions
|
@ -642,7 +642,8 @@ class Strategy(Generic[T]):
|
|||
def capacity(self,
|
||||
read_fraction: Optional[Distribution] = None,
|
||||
write_fraction: Optional[Distribution] = None) -> float:
|
||||
return 1 / self.load(read_fraction, write_fraction)
|
||||
d = distribution.canonicalize_rw(read_fraction, write_fraction)
|
||||
return sum(p * 1 / self._load(fr) for (fr, p) in d.items())
|
||||
|
||||
def network_load(self,
|
||||
read_fraction: Optional[Distribution] = None,
|
||||
|
|
Loading…
Reference in a new issue