updated comment and removed NR check

This commit is contained in:
TheLeo 2025-08-26 18:41:38 +00:00
parent f60221254f
commit 055427ad18

View File

@ -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
}