From 887e0082ab2afe570d7c8ff8d958c04d3e855da1 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Fri, 20 Oct 2017 13:34:24 +0200 Subject: Do not log execution times of jobs shorter than 8s Change-Id: I924fa2f8b6c014fbd0d5d01039289699b38608f6 --- tsp/scripts/log.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tsp/scripts') diff --git a/tsp/scripts/log.sh b/tsp/scripts/log.sh index 43fe5f4..eb6b398 100755 --- a/tsp/scripts/log.sh +++ b/tsp/scripts/log.sh @@ -28,6 +28,6 @@ QUEUE="$(echo "${TMPDIR##*/}" | tr '-' '_')" # tsp will refer to the proper queue, because TMPDIR is passed here EXECUTION_TIME=$(tsp -i "$JOBID" | grep "Time run" | grep -o "[0-9]\+\.[0-9]\+") # Skip jobs below 1s execution time -test "${EXECUTION_TIME%%.*}" -ge "1" && \ +test "${EXECUTION_TIME%%.*}" -ge "8" && \ post_prom "ts_execution_time_$QUEUE" "$EXECUTION_TIME" "Execution time for the $QUEUE queue" post_prom "ts_exit_status_$QUEUE" "$EXIT_STATUS" "Exit status for the $QUEUE queue" -- cgit v1.2.3