refactor: 重构更新多个文件中的相关调用
This commit is contained in:
@@ -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