Return cpu time format error
Return cpu time format error
This commit is contained in:
parent
f2f18df9db
commit
1b525b7c9c
|
@ -413,7 +413,7 @@ func convertCPUTimes(s string) (ret float64, err error) {
|
|||
case 1, 0:
|
||||
_tmp = s
|
||||
default:
|
||||
return ret, err
|
||||
return ret, fmt.Errorf("wrong cpu time string")
|
||||
}
|
||||
} else {
|
||||
_tmp = s
|
||||
|
|
Loading…
Reference in New Issue