vmstat 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -16,3 +16,5 @@ spec/reports
16
16
  test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
+ lib/vmstat/vmstat.bundle
20
+ lib/vmstat/vmstat.so
data/ext/vmstat/vmstat.c CHANGED
@@ -103,7 +103,8 @@ VALUE method_cpu(VALUE self) {
103
103
  PROCESSOR_CPU_LOAD_INFO, &numCPUsU, &cpuInfo, &numCpuInfo);
104
104
 
105
105
  if(err == KERN_SUCCESS) {
106
- for(unsigned i = 0U; i < numCPUsU; ++i) {
106
+ unsigned i;
107
+ for(i = 0U; i < numCPUsU; ++i) {
107
108
  VALUE cpu = rb_hash_new();
108
109
  int pos = CPU_STATE_MAX * i;
109
110
  rb_hash_aset(cpu, SYM_USER, ULL2NUM(cpuInfo[pos + CPU_STATE_USER]));
@@ -1,3 +1,3 @@
1
1
  module Vmstat
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmstat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-29 00:00:00.000000000 Z
12
+ date: 2012-09-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -79,12 +79,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
79
  - - ! '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
+ segments:
83
+ - 0
84
+ hash: 4126602806320238323
82
85
  required_rubygems_version: !ruby/object:Gem::Requirement
83
86
  none: false
84
87
  requirements:
85
88
  - - ! '>='
86
89
  - !ruby/object:Gem::Version
87
90
  version: '0'
91
+ segments:
92
+ - 0
93
+ hash: 4126602806320238323
88
94
  requirements: []
89
95
  rubyforge_project:
90
96
  rubygems_version: 1.8.24
@@ -94,4 +100,3 @@ summary: A focused and fast library t gather system information
94
100
  test_files:
95
101
  - spec/spec_helper.rb
96
102
  - spec/vmstat_spec.rb
97
- has_rdoc: