blink_tm 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: b4e90e73c0c9d495bf37a16e6020498d5880ef79dd2ad36aaa054fd344580e5c
4
- data.tar.gz: 02a83b060adb7e15c3e06cc6fe266aa699740b494d0a4f87296aa329741aa12a
3
+ metadata.gz: 79578d594763d5de1330239dd259bf7eec1fdc08a617710f4229f7fa0f3c8dfc
4
+ data.tar.gz: b96f080cfa95f9eaa26549a88d32e8054773524a4218dacd1e70e8b552fbca82
5
5
  SHA512:
6
- metadata.gz: 40d53fe4c787ad0995525d6531688ef5d83f9049107fca15936826ebde78515cf29c15bd567ad9c19a8bebc6acca9ce38419a874349063e76c93349739c62ea4
7
- data.tar.gz: f6483431ae948c6eda5a59ca449e086b7a3fb4c8fee9766039bbb1d8c200ddd62994cb00387a78229e32726dbe90881ea57912e01bd31af8534b575541aba4dc
6
+ metadata.gz: f4e8827f0b2ca289a5b723c3b8756ba762ea2e114155a94d836c9e290ad0be3905d6debffcadc76673cc2bcbab7477f5137e1ceafbcb05a2eb54a70c5920669c
7
+ data.tar.gz: ad1ca0d05c0284908e303719c310961c4123d3ede63910c635520a014a62eb3247eb9015634edb7d3124d364b1f4f9df164a26a306a93e908d5c9704c389af92
@@ -1,4 +1,3 @@
1
-
2
1
  #!/usr/bin/ruby -w
3
2
  # Frozen_String_Literal: true
4
3
 
@@ -98,8 +97,8 @@ module BlinkTM
98
97
  sleep POLLING
99
98
  io_stat2 = iostat()
100
99
 
101
- io_r = POLLING * io_stat2[0].-(io_stat1[0])
102
- io_w = POLLING * io_stat2[1].-(io_stat1[1])
100
+ io_r = io_stat2[0].-(io_stat1[0]) / POLLING
101
+ io_w = io_stat2[1].-(io_stat1[1]) / POLLING
103
102
  end
104
103
  }
105
104
 
@@ -207,7 +206,7 @@ module BlinkTM
207
206
  |x| x.split[1] == ?/
208
207
  }.to_s.split[0].to_s.split(?/).to_a[-1]
209
208
 
210
- @@sector_size = LS::FS.stat(?/)[:block_size]
209
+ @@sector_size ||= LS::FS.stat(?/)[:block_size]
211
210
 
212
211
  io_stat = IO.foreach('/proc/diskstats'.freeze).find { |x|
213
212
  x.split[2] == @@root_partition
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlinkTM
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blink_tm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sourav Goswami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-25 00:00:00.000000000 Z
11
+ date: 2021-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: linux_stat