Do not log execution times of jobs shorter than 8s 41/181841/1
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 20 Oct 2017 11:34:24 +0000 (13:34 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Wed, 25 Oct 2017 16:47:42 +0000 (18:47 +0200)
Change-Id: I924fa2f8b6c014fbd0d5d01039289699b38608f6

tsp/scripts/log.sh

index 43fe5f4..eb6b398 100755 (executable)
@@ -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"