Signed-off-by: Jan Weitzel <[email protected]>
---
bin/ptxdist | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bin/ptxdist b/bin/ptxdist
index b8b5e99..e831562 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2140,7 +2140,7 @@ setup_config() {
# this one is for Linux
if [ -r /proc/cpuinfo ]; then
- cpus="$(egrep '^(processor|cpu )' /proc/cpuinfo | wc -l)"
+ cpus="$(egrep -c '^(processor|cpu )' /proc/cpuinfo)"
if [ ${cpus} -eq 0 ]; then
cpus=1
fi
--
1.7.0.4
--
ptxdist mailing list
[email protected]