From fa9d66e266d60ac991da86f7bbecb7dc07cde3c6 Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 9 Sep 2024 20:20:11 +0100 Subject: [PATCH] feat(metrics): map 'x86_64' to 'amd64' for consistent OS architecture naming --- python/src/endstone/_internal/metrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/src/endstone/_internal/metrics.py b/python/src/endstone/_internal/metrics.py index 25c4b533f..bce5515e1 100644 --- a/python/src/endstone/_internal/metrics.py +++ b/python/src/endstone/_internal/metrics.py @@ -49,7 +49,10 @@ def append_platform_data(self, platform_data: Dict[str, Any]) -> None: platform_data["osName"] = "Linux" platform_data["osVersion"] = platform.release() - platform_data["osArch"] = platform.machine().lower() + os_arch = platform.machine().lower() + if os_arch == "x86_64": + os_arch = "amd64" + platform_data["osArch"] = os_arch platform_data["coreCount"] = os.cpu_count() def log_info(self, message: str) -> None: