Permalink
Browse files

bugfix for GetCpuStats

  • Loading branch information...
1 parent f35c995 commit 7141d590696d4a5c9be8fceb0287109a0d3e0ddb @swdunlop committed Feb 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 gostatgrab.go
View
@@ -56,7 +56,7 @@ func Shutdown() error {
func GetCpuStats() (*CpuStats, error) {
c := C.sg_get_cpu_stats()
if c == nil {
- return nil, error
+ return nil, getError()
}
return &CpuStats{
int64(c.user),

0 comments on commit 7141d59

Please sign in to comment.