Fixes #217
This commit is contained in:
parent
f433901aee
commit
cd0cf0f6ed
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user