summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-04-28 12:58:33 -0500
committerSean E. Russell <ser@ser1.net>2020-04-28 13:04:00 -0500
commit6076d6451e9ef97e96dfea4b96a9c9af16ef49ab (patch)
treea080b4512b4498edab6486e2103d41b602c95623
parentfeed054fa57a41b0778ae138dbd306d93f39c709 (diff)
Fixes #94, null map on FreeBSDv3.5.2
Prep for release
-rw-r--r--CHANGELOG.md8
-rw-r--r--cmd/gotop/main.go2
-rw-r--r--devices/temp_freebsd.go2
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()