Skip to content

Commit

Permalink
Fixes #217
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxserxxx committed Jul 15, 2022
1 parent f433901 commit cd0cf0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -286,4 +292,5 @@ const (
mbps = "mbps"
temperatures = "temperatures"
nvidia = "nvidia"
nvidiarefresh = "nvidiarefresh"
)

0 comments on commit cd0cf0f

Please sign in to comment.