Commit d474fd81 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Fix the subscription check in LinuxMemoryBackend

We need to update sensor properties if either the physical object or the
swap object is subscribed (or both).
parent 85e3e7dd
......@@ -30,7 +30,7 @@ LinuxMemoryBackend::LinuxMemoryBackend(SensorContainer *container)
void LinuxMemoryBackend::update()
if (!m_physicalObject->isSubscribed() || ! m_swapObject->isSubscribed()) {
if (!m_physicalObject->isSubscribed() && !m_swapObject->isSubscribed()) {
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