check-cpu-steal 0.1.4 → 0.1.5

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: be778bd2716420423354f0b8ec4f916b0ed66541
4
- data.tar.gz: e4099fadbdfa345b3cfb1dc8c095098a51a5443e
3
+ metadata.gz: dc5f8ea9e48832532cf2d8fd93465ea0e5cea932
4
+ data.tar.gz: 216e4b9aab28e7adbfd6d345e6c6a748876b7534
5
5
  SHA512:
6
- metadata.gz: c2747a5dbd8585a0f8469ebd4cbea62602e7731953d0731aa2550890db329fd80aaaad9937bd6c4b5505de284d7af53cb7b1d8de463a1b41450cec63ab9a7370
7
- data.tar.gz: 2c0a51aefa7b7d580bfa04c85fa5dd7886c91c4665c1b4b596d50fe8913897d8ed5f17ccf58aa19dfeb776ea33c1c923b28bfed6c24cf9e56a1286073479b0c7
6
+ metadata.gz: 207d320e5966477ca718b3ae90fa66c448e5c5dbf338d40bcafe070105d119f78c7f95abeda965a66c867a314283988cbd80f7f49973363819ebad4beb30de0b
7
+ data.tar.gz: fbf67b329efa47aff0ede9cac0df54826929a6025c27a1f8f6b62543f5ec9db7c03f023f48273553fb00d57c8407ab111105cecc8ee41e0de65d30838ba62642
@@ -1,5 +1,5 @@
1
1
  #
2
- # Stat collection and calculation
2
+ # CPU stat collection and calculation
3
3
  #
4
4
  class CpuStats
5
5
  CLASSES = [:user, :nice, :system, :idle, :iowait, :irq,
@@ -21,7 +21,7 @@ class CpuStats
21
21
  info = read_proc
22
22
  stats = info.split(/\s+/)
23
23
  stats.shift
24
- stats.map(&:to_f)
24
+ stats.map!(&:to_f)
25
25
  Hash[CLASSES.zip(stats)]
26
26
  end
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check-cpu-steal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Flippin