From a67a99f849beb239f01ef09a1684124c8b33c708 Mon Sep 17 00:00:00 2001 From: Mirko Milovanovic Date: Sun, 30 Mar 2025 15:27:54 +0200 Subject: [PATCH] fix: correct byte conversion logic in convert_to_bytes function --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 8a8a4f0..07d17f1 100644 --- a/main.py +++ b/main.py @@ -81,7 +81,7 @@ def setupChromeDriver(command_executor: str | None, webrtc_internals_path: str) return driver def convert_to_bytes(down, downUnit): - return float(down) * (1024 ** {'B': 0, 'KB': 1, 'MB': 2, 'GB': 3}[downUnit]) + return float(down) * (1000 ** {'B': 0, 'KB': 1, 'MB': 2, 'GB': 3}[downUnit]) # Default Plugin Implementations class DefaultStatsSetupPlugin(StatsSetupPlugin):