summaryrefslogtreecommitdiffstats
path: root/nvidia.go
diff options
context:
space:
mode:
Diffstat (limited to 'nvidia.go')
-rw-r--r--nvidia.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/nvidia.go b/nvidia.go
index 197a616..baf1f52 100644
--- a/nvidia.go
+++ b/nvidia.go
@@ -13,6 +13,10 @@ import (
)
func init() {
+ _temps = make(map[string]int)
+ _mems = make(map[string]devices.MemoryInfo)
+ _cpus = make(map[string]int)
+ errors = make(map[string]error)
devices.RegisterTemp(updateNvidiaTemp)
devices.RegisterMem(updateNvidiaMem)
devices.RegisterCPU(updateNvidiaUsage)