Skip to content

Commit

Permalink
feat(metrics): map 'x86_64' to 'amd64' for consistent OS architecture…
Browse files Browse the repository at this point in the history
… naming
  • Loading branch information
wu-vincent committed Sep 9, 2024
1 parent 20cad3f commit fa9d66e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/src/endstone/_internal/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa9d66e

Please sign in to comment.