vidibus-sysinfo 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -21,7 +21,7 @@ Then call bundle install on your console.
21
21
  This gem uses various tools to obtain system data. Installing those tools should be simple, at least on Debian and Ubuntu:
22
22
 
23
23
  ```shell
24
- apt-get install sysstat vnstat lscpu
24
+ apt-get install sysstat vnstat
25
25
  vnstat -u -i eth0
26
26
  /etc/init.d/vnstat start
27
27
  ```
@@ -19,7 +19,7 @@ module Vidibus
19
19
 
20
20
  def parse(output)
21
21
  month = /(\s*\w{3} \'\d{2})/
22
- traffic = /\s*(\d+(?:\.\d+)?) (ki?B|Mi?B|Gi?B|Ti?B)\s*/
22
+ traffic = /\s*(\d+(?:\.\d+)?) (ki?B|Mi?B|Gi?B|Ti?B)\s*/i
23
23
  last_month = output.split(/\r?\n/)[-3]
24
24
  if last_month and last_month.match(/#{month}#{traffic}\|#{traffic}\|#{traffic}+/m)
25
25
  amount = $6.to_f
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module Sysinfo
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-sysinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -414035484912396816
146
+ hash: 3733931104126455716
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements: