Commit deeb6ecd authored by David Redondo's avatar David Redondo 🏎
Browse files

Don't visit every directory if the cgroup base path is empty

if it is empty we visit every directory on the system which currently
happens on freebsd.
parent a3ccdf12
......@@ -108,6 +108,10 @@ CGroupDataModel::CGroupDataModel(QObject *parent)
d->m_availableAttributes[attr->id()] = attr;
}
if (CGroup::cgroupSysBasePath().isEmpty()) {
return;
}
connect(d->m_updateTimer, &QTimer::timeout, this, [this]() {
update();
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment