Commit 6c3cf0f2 authored by David Redondo's avatar David Redondo 🏎

FreeBSD fixes

:q
parent b7bde8e4
......@@ -43,7 +43,6 @@ FreeBsdCpuObject::FreeBsdCpuObject(const QString &id, const QString &name, Senso
}
const QByteArray tjmax = QByteArrayLiteral("dev.cpu.") + id.right(1).toLocal8Bit() + QByteArrayLiteral(".coretemp.tjmax");
int maxTemperature;
size_t maxTemperatureSize = sizeof(maxTemperature);
// This is only availabel on Intel (using the coretemp driver)
if (readSysctl(tjmax.constData(), &maxTemperature)) {
m_temperature->setMax(maxTemperature);
......@@ -69,7 +68,7 @@ void FreeBsdCpuObject::update(long system, long user, long idle)
m_userTicks = user;
m_totalTicks = totalTicks;
if (id() == QStringLiteral("all")) {
if (!m_frequency) {
return;
}
......
......@@ -19,7 +19,7 @@ public:
FreeBsdCpuPluginPrivate(CpuPlugin *q);
void update() override;
private:
AllCpusObject<FreeBsdCpuObject> m_allCpusObject;
AllCpusObject<FreeBsdCpuObject> *m_allCpusObject;
};
#endif
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