Commit Graph

5 Commits

Author SHA1 Message Date
Akizon77
d19fae83ba fix: 修正内存使用计算逻辑以正确反映已用内存 2025-09-12 02:11:41 +00:00
Akizon77
2d1f25e1bf feat: 添加内存使用缓存选项并弃用旧标志 2025-09-06 04:15:28 +00:00
akizon77
a8ada8203d deps: 更新 gopsutil 依赖至 v4 版本 2025-07-16 19:20:52 +08:00
Akizon77
7c79020153 feat: 添加memory-mode-available,使用available内存 2025-06-18 14:30:12 +08:00
Akizon77
e34367de69 Refactor monitoring package: remove platform-specific files and consolidate OS detection and process counting logic
- Deleted os_windows.go and process_windows.go, replacing them with platform-agnostic implementations in unit directory.
- Removed Linux-specific process counting logic from process_linux.go and integrated it into unit.
- Consolidated uptime and OS name retrieval into unit files for better organization.
- Updated update mechanism to use global variables for current version and repository.
- Introduced command-line flags for configuration, including disabling auto-update and web SSH.
- Implemented WebSocket connection handling and terminal interaction for both Unix and Windows systems.
- Added basic info upload functionality to server package, enhancing monitoring capabilities.
2025-05-16 19:56:22 +08:00