refactor: 重构更新多个文件中的相关调用

This commit is contained in:
TsMask committed 2025-02-20 10:11:40 +08:00
1 parent f3c33b31ac
commit 5b9bcd6660
34 files changed
+1243 -1894

No files matched your search

+2 -2
View File
@@ -126,10 +126,10 @@ func GetSysInfo(sysInfo *SysInfo) error {
return nil
}
func getProcess() process.Process {
func getProcess() *process.Process {
checkPid := os.Getpid()
ret, _ := process.NewProcess(int32(checkPid))
return *ret
return ret
}
func GetSystemCpuInfo() {