From cd0cf0f6ed85f3d9e9cbc7dfd2eb6e0a03f18dc2 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Fri, 15 Jul 2022 11:29:23 -0500 Subject: [PATCH] Fixes #217 --- config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.go b/config.go index 1e66d75a..671737b1 100644 --- a/config.go +++ b/config.go @@ -190,6 +190,12 @@ func load(in io.Reader, conf *Config) error { return fmt.Errorf(conf.Tr.Value("config.err.line", ln, err.Error())) } conf.Nvidia = nv + case nvidiarefresh: + d, err := time.ParseDuration(kv[1]) + if err != nil { + return fmt.Errorf(conf.Tr.Value("config.err.line", ln, err.Error())) + } + conf.NvidiaRefresh = d } } @@ -286,4 +292,5 @@ const ( mbps = "mbps" temperatures = "temperatures" nvidia = "nvidia" + nvidiarefresh = "nvidiarefresh" )