From 6076d6451e9ef97e96dfea4b96a9c9af16ef49ab Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Tue, 28 Apr 2020 12:58:33 -0500 Subject: Fixes #94, null map on FreeBSD Prep for release --- CHANGELOG.md | 8 +++++++- cmd/gotop/main.go | 2 +- devices/temp_freebsd.go | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df6bc06..e4ca11c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go index 90f6726..81a6d07 100644 --- a/cmd/gotop/main.go +++ b/cmd/gotop/main.go @@ -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 diff --git a/devices/temp_freebsd.go b/devices/temp_freebsd.go index 54355fc..0916122 100644 --- a/devices/temp_freebsd.go +++ b/devices/temp_freebsd.go @@ -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() -- cgit v1.2.3