From eb1afb3f599889ab2f88a48830f734883a6deef8 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 11 Sep 2024 17:36:17 +0200 Subject: [PATCH] small refactor, more comments --- src/borgstore/store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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""