fix the return value struct.

This commit is contained in:
WAKAYAMA Shirou 2014-04-18 21:26:24 +09:00
parent 5b605dc1a3
commit f16e9efb2e
1 changed files with 3 additions and 3 deletions

View File

@ -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
}