summaryrefslogtreecommitdiffstats
path: root/monitor/fan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/fan.cpp')
-rw-r--r--monitor/fan.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/monitor/fan.cpp b/monitor/fan.cpp
index 852d2ba..7d657a0 100644
--- a/monitor/fan.cpp
+++ b/monitor/fan.cpp
@@ -44,10 +44,9 @@ Fan::Fan(sdbusplus::bus::bus& bus,
*this,
std::get<sensorNameField>(s),
std::get<hasTargetField>(s),
- std::get<timeoutField>(def)));
-
+ std::get<timeoutField>(def),
+ events));
}
-
}
@@ -123,6 +122,16 @@ bool Fan::outOfRange(const TachSensor& sensor)
}
+void Fan::timerExpired(TachSensor& sensor)
+{
+ sensor.setFunctional(false);
+
+ //If the fan is currently functional, but too many
+ //contained sensors are now nonfunctional, update
+ //the whole fan nonfunctional.
+ //TODO
+}
+
}
}
}
OpenPOWER on IntegriCloud