Fix auto_detect ignoring persistence bool
This commit is contained in:
parent
5481587167
commit
f4e94d9e7d
2 changed files with 2 additions and 1 deletions
|
@ -91,6 +91,7 @@ pub fn auto_detect0(settings_opt: Option<SettingsJson>, json_path: std::path::Pa
|
|||
}
|
||||
if matches {
|
||||
if let Some(settings) = &settings_opt {
|
||||
*builder.general.persistent() = true;
|
||||
for limit in conf.limits {
|
||||
match limit {
|
||||
Limits::Cpu(cpus) => {
|
||||
|
|
|
@ -105,7 +105,7 @@ impl Settings {
|
|||
pub fn from_json(other: SettingsJson, json_path: PathBuf) -> Self {
|
||||
match super::Driver::init(other, json_path.clone()) {
|
||||
Ok(x) => {
|
||||
log::info!("Loaded settings for driver {:?}", x.general.provider());
|
||||
log::info!("Loaded settings with drivers general:{:?},cpus:{:?},gpu:{:?},battery:{:?}", x.general.provider(), x.cpus.provider(), x.gpu.provider(), x.battery.provider());
|
||||
Self {
|
||||
general: x.general,
|
||||
cpus: x.cpus,
|
||||
|
|
Loading…
Reference in a new issue