summaryrefslogtreecommitdiff
path: root/status
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2023-12-30 14:16:56 +0000
committerhhvn <dev@hhvn.uk>2023-12-30 14:16:56 +0000
commitec83d2780491159c4425ee1a5816c2bd4d6e6245 (patch)
tree503715b0f2ac8372bed50fa7e876c7641bceebf7 /status
parent0e385d244de19900df25f1c88f29c3cece6106cb (diff)
Make bar run state.GetMon itself
Diffstat (limited to 'status')
-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 {