fix: correct byte conversion logic in convert_to_bytes function
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m58s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m58s
This commit is contained in:
2
main.py
2
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):
|
||||
|
Reference in New Issue
Block a user