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
b40f8d07
Commit
b40f8d07
authored
Aug 25, 2020
by
David Redondo
🏎
Browse files
debug--
parent
bdeba27b
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/global/cpu/linuxcpu.cpp
View file @
b40f8d07
...
...
@@ -140,7 +140,6 @@ LinuxCpuPluginPrivate::LinuxCpuPluginPrivate(CpuPlugin *q)
}
const
QString
name
=
i18nc
(
"@title"
,
"CPU %1 Core %2"
).
arg
(
physicalId
+
1
).
arg
(
++
numCores
[
physicalId
]);
auto
cpu
=
new
LinuxCpuObject
(
QStringLiteral
(
"cpu%1"
).
arg
(
processor
),
name
,
m_container
,
frequency
);
qDebug
()
<<
physicalId
<<
coreId
<<
cpu
->
id
();
m_cpusBySystemIds
.
insert
({
physicalId
,
coreId
},
cpu
);
}
const
int
cores
=
m_container
->
objects
().
size
();
...
...
@@ -223,7 +222,6 @@ void LinuxCpuPluginPrivate::addSensorsIntel(const sensors_chip_name * const chip
// Naturally they share the same temperature sensor and have the same coreId.
auto
cpu_range
=
m_cpusBySystemIds
.
equal_range
({
physicalId
,
feature
.
key
()});
for
(
auto
cpu_it
=
cpu_range
.
first
;
cpu_it
!=
cpu_range
.
second
;
++
cpu_it
)
{
qDebug
()
<<
physicalId
<<
feature
.
key
()
<<
feature
.
value
()
->
name
;
(
*
cpu_it
)
->
setTemperatureSensor
(
chipName
,
feature
.
value
());
}
}
...
...
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