Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KSysGuard
Commits
6c3cf0f2
Commit
6c3cf0f2
authored
Sep 24, 2020
by
David Redondo
🏎
Browse files
FreeBSD fixes
:q
parent
b7bde8e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/global/cpu/freebsdcpu.cpp
View file @
6c3cf0f2
...
...
@@ -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
;
}
...
...
plugins/global/cpu/freebsdcpu.h
View file @
6c3cf0f2
...
...
@@ -19,7 +19,7 @@ public:
FreeBsdCpuPluginPrivate
(
CpuPlugin
*
q
);
void
update
()
override
;
private:
AllCpusObject
<
FreeBsdCpuObject
>
m_allCpusObject
;
AllCpusObject
<
FreeBsdCpuObject
>
*
m_allCpusObject
;
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment