iStats 1.6.0 → 1.6.1
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 +4 -4
- data/lib/iStats/extra.rb +4 -0
- data/lib/iStats/printer.rb +3 -3
- data/lib/iStats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9147b48215b23d4e5e217128e706f2988574152f
|
4
|
+
data.tar.gz: 5c2acd6f35efa84bfac8cc0ca42468e42a6f76bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e21000768f8f6369f23f866e75159d4f4e2d289c7197f20a669ab41b19044a56fbe8a5e289e72ea4a2aac36702d87b57813278ff1708fc4138955890b3603ddb
|
7
|
+
data.tar.gz: 3a8910d484d9a8782046907fec13a87bd03abd6dd96907693600bbbfb562c876085a49d9350cfa7d6a1dbfc5b8e9dcb7b7e8e2ee637296600d52a07855be317a
|
data/lib/iStats/extra.rb
CHANGED
@@ -53,6 +53,10 @@ module IStats
|
|
53
53
|
|
54
54
|
thresholds = sensor['thresholds'][1..-2].split(/, /).map { |s| s.to_i }
|
55
55
|
|
56
|
+
if Printer.get_temperature_scale == 'fahrenheit'
|
57
|
+
thresholds.map! { |t| Utils.to_fahrenheit(t) }
|
58
|
+
end
|
59
|
+
|
56
60
|
if (display)
|
57
61
|
# Invoked if settings has an AltDisplay?
|
58
62
|
puts "#{Printer.format_label("#{key}")}" +
|
data/lib/iStats/printer.rb
CHANGED
@@ -37,7 +37,7 @@ module IStats
|
|
37
37
|
# thresholds - must be an array of size 4 containing the threshold values
|
38
38
|
# for the sparkline colors
|
39
39
|
#
|
40
|
-
# If the values in the thresholds array are descending, treat 100
|
40
|
+
# If the values in the thresholds array are descending, treat 100% as
|
41
41
|
# good (green) instead of bad (red)
|
42
42
|
#
|
43
43
|
def gen_sparkline(value, thresholds)
|
@@ -114,7 +114,7 @@ module IStats
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
-
# Converts the value to the class temperature_scale with
|
117
|
+
# Converts the value to the class temperature_scale with
|
118
118
|
# accompanying scale string.
|
119
119
|
#
|
120
120
|
def parse_temperature(temperature)
|
@@ -153,7 +153,7 @@ module IStats
|
|
153
153
|
|
154
154
|
if @display_labels
|
155
155
|
format = "%-"+LABEL_WIDTH.to_s + "s"
|
156
|
-
printf("%-" + LABEL_WIDTH.to_s + "s", label + ":")
|
156
|
+
printf("%-" + LABEL_WIDTH.to_s + "s", label + ": ")
|
157
157
|
end
|
158
158
|
|
159
159
|
printf("%-" + full_value_width.to_s + "s", full_value)
|
data/lib/iStats/version.rb
CHANGED