crossover_agent 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59e6ade59a76248704e6631a0741ca499d989d59
4
- data.tar.gz: 6a4ac6f598817938665c822b98dd7bc03f3fe1f5
3
+ metadata.gz: ab6eff8b95bd9a00411d6a3193618685b94d1988
4
+ data.tar.gz: 36ffc7caad1b80781d0cab846b6b31d159b179bc
5
5
  SHA512:
6
- metadata.gz: 79e4a31a60f30c505b620a1f826e12fdbaedf6a6199a7572a86a2d13d9426511ca70c50250621f676bac08d3959870a7fe948db38bb1cf1e702e7081e4adc580
7
- data.tar.gz: 518fffdc65c88a455d5327a467fd481cff57ae68de837c0c64e335b41c2926d0fb3c0f18b81919e22f28c86685538006765d366a494ce27598238b97d4063c64
6
+ metadata.gz: 1db57ecca3ee677dcc1ebe8cf92981da90e3a6cd4f6ac71b8b96b64ac9fb1847a9585d5406e55ddc70510da2aed19cfb248372328bf68f4675905701cadf54b6
7
+ data.tar.gz: 4ae1b00ef94c267e77b0a39789ebe447096a9436b13824fb5e9da371ae919c50658e29f5aeea4d8c3e9ca8ff1dbc654457a1eecabc2d5d8cbdd28a268280a4c7
@@ -1,3 +1,3 @@
1
1
  module CrossoverAgent
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -80,7 +80,7 @@ module CrossoverAgent
80
80
  "#{gb_used} Gb / #{gb_total} Gb"
81
81
  end
82
82
  def get_processes(limit)
83
- ps = `ps aux`
83
+ ps = `ps aux | sort -rk 3,3 | head -n #{limit}`
84
84
  mapping = [:user, :pid, :cpu, :mem, :vsz, :rss, :tt, :stat, :started, :time, :command, :arg]
85
85
 
86
86
  res = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossover_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Truong Hoang Dung