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 +4 -4
- data/lib/crossover_agent/version.rb +1 -1
- data/lib/crossover_agent.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab6eff8b95bd9a00411d6a3193618685b94d1988
|
4
|
+
data.tar.gz: 36ffc7caad1b80781d0cab846b6b31d159b179bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1db57ecca3ee677dcc1ebe8cf92981da90e3a6cd4f6ac71b8b96b64ac9fb1847a9585d5406e55ddc70510da2aed19cfb248372328bf68f4675905701cadf54b6
|
7
|
+
data.tar.gz: 4ae1b00ef94c267e77b0a39789ebe447096a9436b13824fb5e9da371ae919c50658e29f5aeea4d8c3e9ca8ff1dbc654457a1eecabc2d5d8cbdd28a268280a4c7
|
data/lib/crossover_agent.rb
CHANGED
@@ -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 = []
|