refactor: 重构更新多个文件中的相关调用
This commit is contained in:
1 parent
f3c33b31ac
commit
5b9bcd6660
34 files changed
+1243
-1894
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user