summaryrefslogtreecommitdiffstats
path: root/monitor/gen-fan-monitor-defs.py
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-21 19:50:17 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 22:07:46 +0000
commit696aed8abe58696e5eb173da38b848825523883a (patch)
treea473da809bcb73f4b7441820c51a0e020048d654 /monitor/gen-fan-monitor-defs.py
parent71779ab4b3699a22f3bb88f2d94ee25c81b15d6f (diff)
downloadphosphor-fan-presence-696aed8abe58696e5eb173da38b848825523883a.zip
phosphor-fan-presence-696aed8abe58696e5eb173da38b848825523883a.tar.gz
Allow override of deviation with absolute minimum RPM
If the devation is less than zero, treat as an absolute minimum RPM value
Diffstat (limited to 'monitor/gen-fan-monitor-defs.py')
-rwxr-xr-xmonitor/gen-fan-monitor-defs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/gen-fan-monitor-defs.py b/monitor/gen-fan-monitor-defs.py
index de25fef..fdb3b89 100755
--- a/monitor/gen-fan-monitor-defs.py
+++ b/monitor/gen-fan-monitor-defs.py
@@ -133,7 +133,7 @@ if __name__ == '__main__':
#Do some minor input validation
for fan in monitor_data.get('fans', {}):
- if ((fan['deviation'] < 0) or (fan['deviation'] > 100)):
+ if (fan['deviation'] > 100):
sys.exit("Invalid deviation value " + str(fan['deviation']))
output_file = os.path.join(args.output_dir, "fan_monitor_defs.cpp")
OpenPOWER on IntegriCloud