server_metrics 0.0.8.8 → 0.0.8.9

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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.0.8.9
2
+
3
+ * fix for top cpu-consuming processes in the process list
4
+
5
+
1
6
  ## 0.0.8.8
2
7
 
3
8
  * fix for LVM-mapped disk IO stats
@@ -36,7 +36,7 @@ class ServerMetrics::Processes
36
36
  def run
37
37
  @processes = calculate_processes # returns a hash
38
38
  top_memory = get_top_processes(:memory, 10) # returns an array
39
- top_cpu = get_top_processes(:memory, 10) # returns an array
39
+ top_cpu = get_top_processes(:cpu, 10) # returns an array
40
40
 
41
41
  # combine the two and index by cmd. The indexing process will remove duplicates
42
42
  result = (top_cpu + top_memory).inject(Hash.new) {|temp_hash,process_hash| temp_hash[process_hash[:cmd]] = process_hash; temp_hash }
@@ -1,3 +1,3 @@
1
1
  module ServerMetrics
2
- VERSION = "0.0.8.8"
2
+ VERSION = "0.0.8.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.8
4
+ version: 0.0.8.9
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: 2014-01-06 00:00:00.000000000 Z
12
+ date: 2014-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-proctable
@@ -172,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: 1750487156162138654
175
+ hash: 3133671317737464320
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  segments:
183
183
  - 0
184
- hash: 1750487156162138654
184
+ hash: 3133671317737464320
185
185
  requirements: []
186
186
  rubyforge_project:
187
187
  rubygems_version: 1.8.23