mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Oops - fix a typo in the new zfs list_pools output to preserve the "%" symbols in the outputs. That symbol only needs to get trimmed out during the system health checks - not globally.
This commit is contained in:
@@ -352,7 +352,8 @@ void EventWatcher::CheckSystemState(){
|
||||
}
|
||||
// Check the capacity, if over 90% we should warn
|
||||
bool ok = false;
|
||||
int cap = zpools.value(pools[i]).toObject().value("capacity").toInt(ok);
|
||||
QString capacity = zpools.value(pools[i]).toObject().value("capacity").toString();
|
||||
int cap = capacity.replace("%","").toInt(&ok);
|
||||
if(ok && cap>90) {
|
||||
if(priority < 6){ priority = 6; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user