Skip to content

Commit

Permalink
reducing --min-cpu-time to 5 as 120 seems too long on test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed May 16, 2024
1 parent 284d507 commit a8f829e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/min-cpu-time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

set -e
( cd .. ; cargo build )
numbad=$(../target/debug/sonar ps --min-cpu-time 120 | \
numbad=$(../target/debug/sonar ps --min-cpu-time 5 | \
awk '
{
s=substr($0, index($0, ",cputime_sec=")+13)
# this field is frequently last so no guarantee there is a trailing comma
ix = index(s, ",")
if (ix > 0)
s=substr(s, 0, ix-1)
if (strtonum(s) < 120)
if (strtonum(s) < 5)
print($0)
}' | \
wc -l )
Expand Down

0 comments on commit a8f829e

Please sign in to comment.