iStats 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iStats/smc.rb +6 -2
- data/lib/iStats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50aba391f0764e8149790c7cc387ab03d1fa5b43
|
4
|
+
data.tar.gz: ab72f3980510dfeccfa08d19436a1522826bcada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3a931e317a03b919d8c1e9066b8786a43f635e9d7a75cdb3acd9f8832344db016b5ede940f8a4dade6a1a339330cd6908b207ee10273882ca2e0e5b33f4be1
|
7
|
+
data.tar.gz: 32694d5487bba3e4c4f60b230c193cb300088625d0149e8554cdab298dae97db4838099c2fd7c7016bc32db41313700630c42dc4e6f5d5bcfc39ff8897eb8e78
|
data/lib/iStats/smc.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/iStats/version.rb
CHANGED
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.
|
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
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sparkr
|