Settings: set ok when reading configuration from sysconfdir

Without this htoprc from sysconfdir is ignored and default meters
are loaded.
This commit is contained in:
Christian Hesse 2021-09-09 09:04:41 +02:00 committed by BenBE
parent c9b58c7fbe
commit 589b0733d9
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
}
if (!ok) {
this->changed = true;
Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
}
if (!ok) {
Settings_defaultMeters(this, initialCpuCount);