mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
fix the return value struct.
This commit is contained in:
parent
5b605dc1a3
commit
f16e9efb2e
@ -6,9 +6,9 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func (c CPU) Cpu_times() map[string]string {
|
||||
ret := make(map[string]string)
|
||||
func (c CPU) Cpu_times() ([]CPU_Times, error) {
|
||||
ret := make([]CPU_Times, 0)
|
||||
|
||||
fmt.Println("FreeBSD")
|
||||
return ret
|
||||
return ret, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user