summaryrefslogtreecommitdiff
path: root/status/02-cpu.go
diff options
context:
space:
mode:
Diffstat (limited to 'status/02-cpu.go')
-rw-r--r--status/02-cpu.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/status/02-cpu.go b/status/02-cpu.go
index e00d74f..a7b97cf 100644
--- a/status/02-cpu.go
+++ b/status/02-cpu.go
@@ -37,8 +37,9 @@ func getcpus(c chan [][]string, e chan error) {
c <- ret
- // This is only used if ret == nil
- e <- errors.New("apparently this computer has no cores")
+ if ret == nil {
+ e <- errors.New("apparently this computer has no cores")
+ }
}
func cpu(name string) error {