Compare commits
2 Commits
6da53a8907
...
fbd87e01c5
Author | SHA1 | Date | |
---|---|---|---|
fbd87e01c5 | |||
a67a99f849 |
@@ -1,4 +1,5 @@
|
||||
# User defined hostname persisted across all sessions, used to keep track of the same user
|
||||
# Set to $NODE_NAME to use the hostname of the node when running a cluster with Hetzner Cloud CLI
|
||||
TELEGRAF_HOSTNAME=
|
||||
# MongoDB connection string
|
||||
TELEGRAF_MONGODB_DSN=mongodb://stats_user:%40z%5EVFhN7q%25vzit@tube.kobim.cloud:27107/?authSource=statistics
|
||||
|
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):
|
||||
|
@@ -78,7 +78,12 @@ echo "Starting $NUMBER Selenium nodes"
|
||||
for NB in $(seq 1 "$NUMBER"); do
|
||||
NODE_NAME="selenium-${HOST}-instance-${NB}"
|
||||
|
||||
|
||||
# Replace variables in the environment file
|
||||
TEMP_ENV_FILE=$(mktemp)
|
||||
while IFS= read -r line; do
|
||||
eval "echo \"$line\""
|
||||
done < "$ENV_FILE" > "$TEMP_ENV_FILE"
|
||||
ENV_FILE="$TEMP_ENV_FILE"
|
||||
|
||||
echo "Starting Selenium node n°$NB"
|
||||
docker run --rm \
|
||||
|
Reference in New Issue
Block a user