mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: ignore CPU frequence devices from devinfo backend
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a90855bddb
commit
064578f9d4
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ bool DevinfoDevice::queryDeviceInterface(const Solid::DeviceInterface::Type &typ
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case Solid::DeviceInterface::Processor: {
|
case Solid::DeviceInterface::Processor: {
|
||||||
return (m_device.indexOf("/cpu") >= 0);
|
return (m_device.indexOf("/cpu") >= 0 && m_device.indexOf("freq") == -1);
|
||||||
}
|
}
|
||||||
case Solid::DeviceInterface::NetworkInterface: {
|
case Solid::DeviceInterface::NetworkInterface: {
|
||||||
return (m_device.indexOf("/em") >= 0 || m_device.indexOf("/wlan") >= 0);
|
return (m_device.indexOf("/em") >= 0 || m_device.indexOf("/wlan") >= 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue