Fix OS reporting in /system_stats API to use sys.platform

Replace os.name with sys.platform for more detailed OS identification.
This change provides better OS differentiation:
- Windows: "nt" -> "win32"
- macOS: "posix" -> "darwin"
- Linux: "posix" -> "linux"

Previously, both macOS and Linux returned "posix", making them
indistinguishable. Now each OS has a unique identifier, aligning
with the Registry Specifications for proper compatibility checks.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jin Yi 2025-09-07 14:29:45 +09:00
parent 71ed4a399e
commit c97f6aa0b2

View File

@ -558,7 +558,7 @@ class PromptServer():
system_stats = { system_stats = {
"system": { "system": {
"os": os.name, "os": sys.platform,
"ram_total": ram_total, "ram_total": ram_total,
"ram_free": ram_free, "ram_free": ram_free,
"comfyui_version": __version__, "comfyui_version": __version__,