Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
KSysGuard
Commits
721318e9
Commit
721318e9
authored
Oct 07, 2020
by
Arjen Hiemstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make GpuDevice::update non-pure virtual
Because Nvidia devices don't need the update.
parent
27abbf16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
plugins/global/gpu/GpuDevice.cpp
plugins/global/gpu/GpuDevice.cpp
+3
-0
plugins/global/gpu/GpuDevice.h
plugins/global/gpu/GpuDevice.h
+1
-1
No files found.
plugins/global/gpu/GpuDevice.cpp
View file @
721318e9
...
...
@@ -49,7 +49,10 @@ void GpuDevice::initialize()
m_temperatureProperty
->
setName
(
i18nc
(
"@title"
,
"Temperature"
));
m_temperatureProperty
->
setPrefix
(
name
());
m_temperatureProperty
->
setUnit
(
KSysGuard
::
UnitCelsius
);
}
void
GpuDevice
::
update
()
{
}
void
GpuDevice
::
makeSensors
()
...
...
plugins/global/gpu/GpuDevice.h
View file @
721318e9
...
...
@@ -19,7 +19,7 @@ public:
~
GpuDevice
()
override
=
default
;
virtual
void
initialize
();
virtual
void
update
()
=
0
;
virtual
void
update
();
protected:
virtual
void
makeSensors
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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