fix: correct byte conversion logic in convert_to_bytes function
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m58s

This commit is contained in:
2025-03-30 15:27:54 +02:00
parent 6da53a8907
commit a67a99f849

View File

@@ -81,7 +81,7 @@ def setupChromeDriver(command_executor: str | None, webrtc_internals_path: str)
return driver return driver
def convert_to_bytes(down, downUnit): 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 # Default Plugin Implementations
class DefaultStatsSetupPlugin(StatsSetupPlugin): class DefaultStatsSetupPlugin(StatsSetupPlugin):