提交 f16e9efb 编写于 作者: W WAKAYAMA Shirou

fix the return value struct.

上级 5b605dc1
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册