Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix for GetCpuStats

  • Loading branch information...
commit 7141d590696d4a5c9be8fceb0287109a0d3e0ddb 1 parent f35c995
@swdunlop authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gostatgrab.go
View
2  gostatgrab.go
@@ -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),
Please sign in to comment.
Something went wrong with that request. Please try again.