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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d4524a43b23dc2f8c2ec7214001e9f167efdee9
4
- data.tar.gz: d73cade1cc7a3cc4004e1fd39f6ac7b2d0e579a2
3
+ metadata.gz: 9147b48215b23d4e5e217128e706f2988574152f
4
+ data.tar.gz: 5c2acd6f35efa84bfac8cc0ca42468e42a6f76bd
5
5
  SHA512:
6
- metadata.gz: 43be157566d393bcaf162bf0f8609e7526f469c814dca9a1aad59453a9c124827b7893117a4f8190acee93cca0cf59038a2709ad49d6eb33293f2b81e23648c4
7
- data.tar.gz: d5ddf3e45144678fa0b7f5fd8752ea1741660b3d7416ae521f67e02ba01dd54ebeb49d34cd7c2b3ec8b2eda53ad733facc6b4ca4224a18c979f3e371254102c6
6
+ metadata.gz: e21000768f8f6369f23f866e75159d4f4e2d289c7197f20a669ab41b19044a56fbe8a5e289e72ea4a2aac36702d87b57813278ff1708fc4138955890b3603ddb
7
+ data.tar.gz: 3a8910d484d9a8782046907fec13a87bd03abd6dd96907693600bbbfb562c876085a49d9350cfa7d6a1dbfc5b8e9dcb7b7e8e2ee637296600d52a07855be317a
@@ -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}")}" +
@@ -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& as
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)
@@ -1,3 +1,3 @@
1
1
  module IStats
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iStats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris911