updated comment and removed NR check
This commit is contained in:
parent
f60221254f
commit
055427ad18
@ -23,14 +23,14 @@ BEGIN {
|
||||
smb[arr[i]] = 1
|
||||
}
|
||||
}
|
||||
NR > 1 {
|
||||
{
|
||||
if(!($1 in smb)) {
|
||||
next
|
||||
}
|
||||
|
||||
elapsed = $4
|
||||
|
||||
# Comparing elapsed to thresholds
|
||||
# Comparing results to thresholds
|
||||
if ($3 >= cpu && elapsed >= time) {
|
||||
printf "PID: %s | Command: %s | CPU: %s%% | Runtime: %s (%.2f hours)\n",$1, $2, $3, $4, elapsed/3600
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user