iStats 1.5.1 → 1.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 370faef2b8def5fe5edc406e9cb06fceda8e01e9
4
- data.tar.gz: 32d283d852ca792f83bc8b5d79d49682b55a217a
3
+ metadata.gz: 50aba391f0764e8149790c7cc387ab03d1fa5b43
4
+ data.tar.gz: ab72f3980510dfeccfa08d19436a1522826bcada
5
5
  SHA512:
6
- metadata.gz: e23063d30b1416766478bf709d12784189dceb495771892cf0821d7a7b9e48f9d3496d7841befec45c96b29927f293e059071c1db9d5e94ea0007bc499c3f7d2
7
- data.tar.gz: f7e0f44f1c0cba7d0f67d03b87d380618e7ea297e55ceb1eaa67d92af837ae56a3daec342961ee97b3b6e6d3d1596d5593246439a9b4ad6ea779d271ba739c60
6
+ metadata.gz: 8c3a931e317a03b919d8c1e9066b8786a43f635e9d7a75cdb3acd9f8832344db016b5ede940f8a4dade6a1a339330cd6908b207ee10273882ca2e0e5b33f4be1
7
+ data.tar.gz: 32694d5487bba3e4c4f60b230c193cb300088625d0149e8554cdab298dae97db4838099c2fd7c7016bc32db41313700630c42dc4e6f5d5bcfc39ff8897eb8e78
@@ -109,7 +109,11 @@ module IStats
109
109
  key = "T#{l1}#{l2}#{l3}"
110
110
  t = is_key_supported(key);
111
111
  if (t != 0.0)
112
- sensors['thresholds'] = [50, 68, 80, 90]
112
+ thresholds = [50, 68, 80, 90]
113
+ if Printer.get_temperature_scale == 'fahrenheit'
114
+ thresholds.map! { |t| Utils.to_fahrenheit(t) }
115
+ end
116
+ sensors['thresholds'] = thresholds
113
117
  sensors['name'] = name(key)
114
118
  sensors['enabled'] = 0
115
119
 
@@ -136,7 +140,7 @@ module IStats
136
140
  key = "T#{l1}#{l2}#{l3}"
137
141
  if (name(key) != 'Unknown') && (name(key) != '')
138
142
  t = is_key_supported(key);
139
- if (t > 0)
143
+ if (t > 0)
140
144
  item = {'{#KEY}' => key, '{#NAME}' => name(key)}
141
145
  items.push(item)
142
146
  end
@@ -1,3 +1,3 @@
1
1
  module IStats
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iStats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris911
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-20 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sparkr