summaryrefslogtreecommitdiffstats
path: root/devices
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-05-01 08:27:03 -0500
committerSean E. Russell <ser@ser1.net>2020-05-01 08:27:03 -0500
commit4563131b2a34993835e06c66756c46d5c7f06625 (patch)
tree9a47aa79c9c121e4f91b4e6218f777840febdc94 /devices
parent9a81d116f42a4f92d68944e13ffc37a0ef6ecf71 (diff)
Update todos
Diffstat (limited to 'devices')
-rw-r--r--devices/cpu.go2
-rw-r--r--devices/devices.go2
-rw-r--r--devices/temp_openbsd.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/devices/cpu.go b/devices/cpu.go
index 1d8d23d..436ccb1 100644
--- a/devices/cpu.go
+++ b/devices/cpu.go
@@ -1,7 +1,5 @@
package devices
-// TODO: https://github.com/elastic/go-sysinfo
-
import (
"log"
"time"
diff --git a/devices/devices.go b/devices/devices.go
index c3cad42..7360578 100644
--- a/devices/devices.go
+++ b/devices/devices.go
@@ -8,6 +8,8 @@ const (
Temperatures = "Temperatures" // Device domain for temperature sensors
)
+// TODO: Redesign; this is not thread safe, and it's easy to write code that triggers concurrent modification panics. Channels?
+
var Domains []string = []string{Temperatures}
var _shutdownFuncs []func() error
var _devs map[string][]string
diff --git a/devices/temp_openbsd.go b/devices/temp_openbsd.go
index d889d78..195882a 100644
--- a/devices/temp_openbsd.go
+++ b/devices/temp_openbsd.go
@@ -15,7 +15,7 @@ import (
"unsafe"
)
-// TODO: Add filtering. Getting the temperature sensor names is non-trivial for OpenBSD, and until I can test it, leave it unimplemented
+// TODO: Add sensor filtering
func init() {
RegisterTemp(update)
}