The following changes since commit 1b916677dce359536faab8524f8db441032c265b:
Stephan Kulow (1):
- add bento theme linked to webdesign module - move some styling into css files
are available in the git repository at:
git://dev.medozas.de/suse-build-service master
Jan Engelhardt (1):
Obtain number of vcpus without relying on cpuinfo
dist/obsworker | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---8<---
parent 1b916677dce359536faab8524f8db441032c265b ()
commit bd91f0edbf48ee171338bee7d48e6dfcaad0fc45
Author: Jan Engelhardt
Date: Tue Dec 22 19:58:46 2009 +0100
Obtain number of vcpus without relying on cpuinfo
/proc/cpuinfo has different layout and content on different
architectures. The old command line would always result in 0 on SPARC.
Signed-off-by: Jan Engelhardt
---
dist/obsworker | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dist/obsworker b/dist/obsworker
index 134e736..f3de41e 100644
--- a/dist/obsworker
+++ b/dist/obsworker
@@ -103,8 +103,11 @@ case "$1" in
NUM="$OBS_WORKER_INSTANCES"
else
# start one build backend per CPU
- NUM=`grep ^processor /proc/cpuinfo | wc -l`
+ NUM=$(ls -d /sys/devices/system/cpu/cpu[0-9]*/topology | wc -l)
fi
+ if [ "$OBS_WORKER_INSTANCES" -eq 0 ]; then
+ NUM=1;
+ fi;
I=0
ROOT="/tmp"
[ -d /BUILD ] && ROOT="/BUILD"
--
# Created with git-export-patch
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-buildservice+help@opensuse.org