Fixes #94, null map on FreeBSD

Prep for release
This commit is contained in:
Sean E. Russell 2020-04-28 12:58:33 -05:00
parent feed054fa5
commit 6076d6451e
3 changed files with 9 additions and 3 deletions

View File

@ -13,7 +13,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
> - **Fixed**: for any bug fixes.
> - **Security**: in case of vulnerabilities.
## [3.5.1] - ??
## [3.5.2] - 2020-04-28
### Fixed
- Fixes (an embarrasing) null map bug on FreeBSD (#94)
## [3.5.1] - 2020-04-09
### Fixed

View File

@ -39,7 +39,7 @@ const (
var (
// TODO: Set this at compile time; having to check this in sucks.
Version = "3.5.1"
Version = "3.5.2"
conf gotop.Config
help *w.HelpMenu
bar *w.StatusBar

View File

@ -20,7 +20,7 @@ var sensorOIDS = map[string]string{
}
func update(temps map[string]int) map[string]error {
var errors map[string]error
errors := make(map[string]error)
for k, v := range sensorOIDS {
output, err := exec.Command("sysctl", "-n", k).Output()