diff options
author | ytti <saku@ytti.fi> | 2016-02-04 13:04:24 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-02-04 13:04:24 +0200 |
commit | a26f6f42aad72d8aac3e4eb107bf6458fc6d302f (patch) | |
tree | 2d4203db26b7ca234e5a1753e2daaf8168e1fcad /lib/oxidized/model | |
parent | 3a3d523f7f7c740207dd37f8a0014a5eb714ac4d (diff) | |
parent | 8bfcf4022b44de6064a74748b0d6983bedcd6065 (diff) |
Merge pull request #304 from ocadotechnology/fix-ironware-fan-speed-percentage
Another fix for ironware fan speeds
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/ironware.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb index f79b977..55b6e57 100644 --- a/lib/oxidized/model/ironware.rb +++ b/lib/oxidized/model/ironware.rb @@ -31,8 +31,8 @@ class IronWare < Oxidized::Model cmd 'show chassis' do |cfg| cfg.encode!("UTF-8", :invalid => :replace) #sometimes ironware returns broken encoding cfg.gsub! /(^((.*)Current temp(.*))$)/, '' #remove unwanted lines current temperature - cfg.gsub! /Speed = [A-Z-]{2,6} \(\d{2}\%\)/, '' #remove unwanted lines Speed Fans - cfg.gsub! /current speed is [A-Z]{3} \(\d{2}\%\)/, '' + 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! /\d{2}\.\d deg-C/, 'XX.X deg-C' if cfg.include? "TEMPERATURE" sc = StringScanner.new cfg |