Add memory sensor
[khatus.git] / x2 / src / awk / exe / parse_ps.awk
... / ...
CommitLineData
1{
2 pid = $1
3 state = $2
4 Pids[pid] = 1
5 Total_Per_State[state]++
6}
7
8END {
9 print("total_procs", length(Pids))
10 for (state in Total_Per_State) {
11 print("total_per_state" Kfs state, Total_Per_State[state])
12 }
13}
This page took 0.022179 seconds and 4 git commands to generate.