ps_f 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/ps_f +3 -3
  2. metadata +3 -3
data/bin/ps_f CHANGED
@@ -36,8 +36,8 @@ def asm(tree, roots, pre_prefix, cmd_list)
36
36
  h[ppid] << [pid, command]
37
37
  end
38
38
 
39
- h.each do |ppid, list|
40
- list.each_with_index do |pid_cmd, i|
39
+ h.sort_by {|a, b| a }.each do |ppid, list|
40
+ list.sort_by {|a, b| a[0] }.each_with_index do |pid_cmd, i|
41
41
  pid, command = pid_cmd
42
42
 
43
43
  cmd_list << [pid, pre_prefix + ' \_ ' + command]
@@ -76,7 +76,7 @@ tree_rows.each do |row|
76
76
  fmt_list = []
77
77
 
78
78
  row.each_with_index do |value, i|
79
- fmt_list << (/\A[.\d]+\Z/ =~ value ? '%*s' : '%-*s')
79
+ fmt_list << (/\A[.:\d]+(AM|PM)?\Z/ =~ value ? '%*s' : '%-*s')
80
80
  end
81
81
 
82
82
  format = fmt_list.join(' ')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ps_f
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel