arvicco-avalon 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -41,7 +41,7 @@ Monitor script is periodically polling the mining units and other types of objec
41
41
  prod:
42
42
  :alert_after: 2 # missed pings or status reports from a miner
43
43
  :alert_temp_high: 52 # degrees C and above
44
- :alert_temp_low: 30 # degrees C and below
44
+ :alert_temp_low: 30 # degrees C and below, Avalon miners only
45
45
  :alert_last_share: 2 # minutes since last share hashed
46
46
  :alert_sounds:
47
47
  :failure: Glass.aiff # [] for no sound
data/lib/avalon/miner.rb CHANGED
@@ -109,7 +109,7 @@ module Avalon
109
109
  alarm "Miner #{num} last shares was #{duration(self[:last])} min ago", :last_share
110
110
  elsif temp >= @config[:alert_temp_high]
111
111
  alarm "Miner #{num} too hot at #{temp}°C, needs cooling", :temp_high
112
- elsif temp <= @config[:alert_temp_low]
112
+ elsif self[:freq] && temp <= @config[:alert_temp_low]
113
113
  alarm "Miner #{num} temp low at #{temp}°C, is it hashing at all?", :temp_low
114
114
  end
115
115
  end
@@ -1,3 +1,3 @@
1
1
  module Avalon
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvicco-avalon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: