diff --git a/src/borgstore/store.py b/src/borgstore/store.py index 7c520a2..d2ae08a 100644 --- a/src/borgstore/store.py +++ b/src/borgstore/store.py @@ -49,9 +49,9 @@ def __init__(self, url: Optional[str] = None, backend: Optional[BackendBase] = N self.backend = backend self._stats: Counter = Counter() # this is to emulate additional latency to what the backend actually offers: - self.latency = float(os.environ.get("BORGSTORE_LATENCY", "0")) / 1e6 # [us] + self.latency = float(os.environ.get("BORGSTORE_LATENCY", "0")) / 1e6 # [us] -> [s] # this is to emulate less bandwidth than what the backend actually offers: - self.bandwidth = float(os.environ.get("BORGSTORE_BANDWIDTH", "0")) / 8 # [bits/s] + self.bandwidth = float(os.environ.get("BORGSTORE_BANDWIDTH", "0")) / 8 # [bits/s] -> [bytes/s] def __repr__(self): return f""