ps_f 0.1.1 → 0.1.2
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/bin/ps_f +3 -3
- 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[
|
79
|
+
fmt_list << (/\A[.:\d]+(AM|PM)?\Z/ =~ value ? '%*s' : '%-*s')
|
80
80
|
end
|
81
81
|
|
82
82
|
format = fmt_list.join(' ')
|
metadata
CHANGED