suppress small CPU time, notably on x86-windows, where bash does not account for the poly process;
authorwenzelm
Thu, 20 Aug 2015 19:33:26 +0200
changeset 60990 07592e217180
parent 60989 c967d423953a
child 60991 2fc5a44346b5
suppress small CPU time, notably on x86-windows, where bash does not account for the poly process;
lib/scripts/timestop.bash
--- a/lib/scripts/timestop.bash	Thu Aug 20 19:19:19 2015 +0200
+++ b/lib/scripts/timestop.bash	Thu Aug 20 19:33:26 2015 +0200
@@ -34,10 +34,12 @@
     [ "$KIND" = 2 ] && KIND_NAME="cpu time"
     local RESULT="${HOURS}:${MINUTES}:${SECS} ${KIND_NAME}"
 
-    if [ -z "$TIMES_REPORT" ]; then
-      TIMES_REPORT="$RESULT"
-    else
-      TIMES_REPORT="$TIMES_REPORT, $RESULT"
+    if [ ${KIND} -eq 1 -o ${TIME} -ge 5 ]; then
+      if [ -z "$TIMES_REPORT" ]; then
+        TIMES_REPORT="$RESULT"
+      else
+        TIMES_REPORT="$TIMES_REPORT, $RESULT"
+      fi
     fi
   done
   if let "$TIME1 >= 5 && $TIME2 >= 5"