From d8e11007febf92417f55045b8917c0f0964a5ec2 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 17 Jan 2020 16:31:59 +0000 Subject: [PATCH] config/multithread: dump stats only on success --- config/multithread | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/multithread b/config/multithread index 18d40f98a8..f5ec0b025b 100644 --- a/config/multithread +++ b/config/multithread @@ -56,7 +56,7 @@ start_multithread_build() { --loadstats "${THREAD_CONTROL}"/loadstats \ --max-procs ${THREADCOUNT} ${buildopts} || result=1 - [ -f "${THREAD_CONTROL}"/history ] && echo && cat "${THREAD_CONTROL}"/history | ${ROOT}/tools/mtstats.py + [ ${result} -eq 0 -a -f "${THREAD_CONTROL}"/history ] && echo && cat "${THREAD_CONTROL}"/history | ${ROOT}/tools/mtstats.py rm -f "${THREAD_CONTROL}/parallel.pid" fi