home
/
code
/
khatus.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Do not process collect data we do not use
[khatus.git]
/
bin
/
khatus_parse_ps
1
#! /usr/bin/awk -f
2
3
BEGIN
{
4
OFS
=
"|"
5
Kfs =
":"
6
}
7
8
{
9
pid = $
1
10
state = $
2
11
Pids
[
pid
]
=
1
12
Total_Per_State
[
state
]++
13
}
14
15
END
{
16
print
(
"total_procs"
,
length
(
Pids
))
17
for
(
state in Total_Per_State
) {
18
print
(
"total_per_state"
Kfs state
,
Total_Per_State
[
state
])
19
}
20
}
This page took
0.065018 seconds
and
4
git commands to generate.