diff options
| author | hhvn <dev@hhvn.uk> | 2023-12-30 14:16:56 +0000 |
|---|---|---|
| committer | hhvn <dev@hhvn.uk> | 2023-12-30 14:16:56 +0000 |
| commit | ec83d2780491159c4425ee1a5816c2bd4d6e6245 (patch) | |
| tree | 503715b0f2ac8372bed50fa7e876c7641bceebf7 /status/02-cpu.go | |
| parent | 0e385d244de19900df25f1c88f29c3cece6106cb (diff) | |
Make bar run state.GetMon itself
Diffstat (limited to 'status/02-cpu.go')
| -rw-r--r-- | status/02-cpu.go | 5 |
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 { |