diff options
author | ytti <saku@ytti.fi> | 2017-01-11 20:29:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-11 20:29:15 +0200 |
commit | ab9262d31399cf8feeea18ac9bbbda812bf99404 (patch) | |
tree | 980064f62091dde0e757aa799ff94bd335966925 /lib/oxidized/model/ironware.rb | |
parent | c5e25141e642b5c0156fb5dbcc5139461e3b112a (diff) | |
parent | 58cb58dd9b00b84115cb7e547900cca90774292b (diff) |
Merge pull request #664 from devicenull/patch-3
Ignore fan speed changes for ironware
Diffstat (limited to 'lib/oxidized/model/ironware.rb')
-rw-r--r-- | lib/oxidized/model/ironware.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb index ade8b44..e1c6da1 100644 --- a/lib/oxidized/model/ironware.rb +++ b/lib/oxidized/model/ironware.rb @@ -34,6 +34,7 @@ class IronWare < Oxidized::Model cfg.gsub! /(^((.*)Current temp(.*))$)/, '' #remove unwanted lines current temperature cfg.gsub! /Speed = [A-Z-]{2,6} \(\d{2,3}\%\)/, '' #remove unwanted lines Speed Fans cfg.gsub! /current speed is [A-Z]{2,6} \(\d{2,3}\%\)/, '' + cfg.gsub! /([\[]*)1([\]]*)<->([\[]*)2([\]]*)<->([\[]*)3([\]]*)/, '' cfg.gsub! /\d{2}\.\d deg-C/, 'XX.X deg-C' if cfg.include? "TEMPERATURE" sc = StringScanner.new cfg |