[med-svn] [phyml] 03/06: Make sure we can do multiprocessing at all before attempting to use it

Andreas Tille tille at debian.org
Tue Jan 31 14:59:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository phyml.

commit e3522fdd453c59278e0d43b17b379dcc0aff5ff8
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jan 31 15:12:33 2017 +0100

    Make sure we can do multiprocessing at all before attempting to use it
---
 debian/wrapper/phyml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/debian/wrapper/phyml b/debian/wrapper/phyml
index e5fd955..02b28ae 100755
--- a/debian/wrapper/phyml
+++ b/debian/wrapper/phyml
@@ -1,11 +1,10 @@
 #!/bin/sh
 
-
 NPROCESSOR=`grep -c 'processor[[:space:]:]\+[0-9]\+' /proc/cpuinfo`
 NCPUS=`grep '^cpu cores' /proc/cpuinfo | head -n 1 | sed 's/cpu cores[[:space:]:]\+//'`
 
 if [ $PHYMLCPUS -eq $PHYMLCPUS 2> /dev/null ] ; then
-  if [ "$PHYMLCPUS" -gt 1 ] ; then
+  if [ $PHYMLCPUS -gt 1 -a $NPROCESSOR -gt 1 ] ; then
     NCPUS=$PHYMLCPUS
   else
     NCPUS=1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/phyml.git



More information about the debian-med-commit mailing list