summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Beers <paul@peezs.nl>2017-06-09 14:25:28 +0200
committerPaul Beers <paul@peezs.nl>2017-06-09 14:25:28 +0200
commit95a86980e0ae13103bfcafec5ad097a6017f037a (patch)
tree204ebe781f252edeaf4cdc82314894233d719796
parent6f2da873140359a598fda47c13a963a0d9d290cb (diff)
Improved regexp
-rw-r--r--lib/oxidized/model/ironware.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb
index af8d19e..4facb30 100644
--- a/lib/oxidized/model/ironware.rb
+++ b/lib/oxidized/model/ironware.rb
@@ -35,7 +35,7 @@ class IronWare < Oxidized::Model
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! /Fan [1-6] - STATUS: OK [A-Z()[0-9] :-]{0,30}/, '' # Fix for ADX Fan speed reporting
- cfg.gsub! /[0-9][0-9] deg C/, '' # Fix for ADX temperature reporting
+ cfg.gsub! /\d* deg C/, '' # Fix for ADX temperature reporting
cfg.gsub! /([\[]*)1([\]]*)<->([\[]*)2([\]]*)(<->([\[]*)3([\]]*))*/, ''
cfg.gsub! /\d{2}\.\d deg-C/, 'XX.X deg-C'
if cfg.include? "TEMPERATURE"