bin/metrics-ioping.rb in sensu-plugins-io-checks-0.0.2 vs bin/metrics-ioping.rb in sensu-plugins-io-checks-0.0.3
- old
+ new
@@ -102,10 +102,10 @@
'min' => 60,
'hour' => 60 * 60,
'day' => 24 * 60 * 60
}
# #YELLOW
- STATS_HEADER = /min\/avg\/max\/mdev/ # rubocop:disable RegexpLiteral
+ STATS_HEADER = /min\/avg\/max\/mdev/
def parse_0_6(str)
value = /#{NUMBER}/
sep = /\//
pattern = /^#{STATS_HEADER} = (#{value})#{sep}(#{value})#{sep}(#{value})#{sep}(#{value}) (#{TIME_UNIT})$/