summaryrefslogtreecommitdiffstats
path: root/nvidia.go
diff options
context:
space:
mode:
Diffstat (limited to 'nvidia.go')
-rw-r--r--nvidia.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nvidia.go b/nvidia.go
index f632bb2..7f2c743 100644
--- a/nvidia.go
+++ b/nvidia.go
@@ -1,4 +1,4 @@
-package main
+package nvidia
// TODO: Optimization: cache most recent info w/ timestamp, and only update if older than X
@@ -12,7 +12,7 @@ import (
"github.com/xxxserxxx/gotop/v3/devices"
)
-func Init() {
+func init() {
devices.RegisterTemp(updateNvidiaTemp)
devices.RegisterMem(updateNvidiaMem)
devices.RegisterCPU(updateNvidiaUsage)