diff options
author | Sean E. Russell <ser@ser1.net> | 2021-02-03 15:49:06 -0600 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2021-02-03 15:49:06 -0600 |
commit | 5a063376b0d63bfe57f35169dc1c754d3f7d16b0 (patch) | |
tree | 128fc66f5bbc415c913fcf07023b7c6f1cf8b699 | |
parent | e5bf9851ff3fc8748a2c770415a13a7a0244ba55 (diff) | |
parent | 96081b733f3341d6020b6d4bec352c814a639022 (diff) |
Merge branch 'master' into go1.16
-rw-r--r-- | CHANGELOG.md | 10 | ||||
-rw-r--r-- | devices/temp_freebsd.go | 11 |
2 files changed, 17 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d974be5..99bd79b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > - **Fixed**: for any bug fixes. > - **Security**: in case of vulnerabilities. -## [4.1.1] +## [4.1.1] 2021-02-03 ### Added @@ -21,11 +21,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Add more badges in README +- Replaces a dependency with a fork, because `go get` -- unlike `go build` -- ignores `replace` directives in `go.mod` +- Adds links to the extension projects in the README (#159) +- Missing thermal sensors on FreeBSD were being reported as errors, when they aren't. (#152) +- Small performance optimization +- github workflow changes to improve failure modes - Bumped `gopsutils` to v3.20.12 - Bumped `battery` to v0.10.0 +- Debug logging was left on (again) causing chatter in logs ### Fixed +- No temperatures on Raspberry Pi (#6) - CPU name sorting in load widget (#161) - The status bar got lost at some point; it's back - Errors from any battery prevented display of all battery information diff --git a/devices/temp_freebsd.go b/devices/temp_freebsd.go index e87dcb3..593ae1e 100644 --- a/devices/temp_freebsd.go +++ b/devices/temp_freebsd.go @@ -63,11 +63,16 @@ func devs() []string { } for k, _ := range sensorOIDS { idx := strings.Index(string(bs), k) - if idx < 0 { - log.Printf(tr.Value("error.nodevfound", k)) - } else { + if idx >= 0 { rv = append(rv, k) } } + if len(rv) == 0 { + oids := make([]string, 0, len(sensorOIDS)) + for k, _ := range sensorOIDS { + oids = append(oids, k) + } + log.Printf(tr.Value("error.nodevfound", strings.Join(oids, ", "))) + } return rv } |