's'
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import platform
|
||||
import socket
|
||||
import subprocess
|
||||
from typing import Any
|
||||
|
||||
@@ -39,3 +40,14 @@ def gpu_status_payload() -> dict[str, Any]:
|
||||
"nvidia_detected": nv,
|
||||
"nvenc_available": enc,
|
||||
}
|
||||
|
||||
|
||||
def machine_summary_payload() -> dict[str, Any]:
|
||||
"""供远程 App 遥测:本机标识与系统信息。"""
|
||||
return {
|
||||
"hostname": socket.gethostname(),
|
||||
"os": platform.system(),
|
||||
"os_release": platform.release(),
|
||||
"machine": platform.machine(),
|
||||
"python": platform.python_version(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user