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

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

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() {