aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-04-06 22:37:39 +0000
committerUlrich Drepper <drepper@redhat.com>2001-04-06 22:37:39 +0000
commit4adec71eab5d67e036233ff2ec8d5edcd13ea713 (patch)
treef60b1a8d3e3758ec610a81f7f8bd9bd88cb47d8c
parent5e9cba30619516af56d976512592bbd19e668f31 (diff)
downloadglibc-4adec71eab5d67e036233ff2ec8d5edcd13ea713.tar
glibc-4adec71eab5d67e036233ff2ec8d5edcd13ea713.tar.gz
glibc-4adec71eab5d67e036233ff2ec8d5edcd13ea713.tar.bz2
glibc-4adec71eab5d67e036233ff2ec8d5edcd13ea713.zip
(GET_NPROCS_PARSER): added code to parse new 2.4 format.
(GET_NPROCS_CONF_PARSER): likewise.
-rw-r--r--sysdeps/unix/sysv/linux/alpha/getsysstats.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/getsysstats.c b/sysdeps/unix/sysv/linux/alpha/getsysstats.c
index 27355b5fe4..d86fc213bf 100644
--- a/sysdeps/unix/sysv/linux/alpha/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/alpha/getsysstats.c
@@ -29,7 +29,9 @@
If there is no "CPUs ..." line then we are on a UP system. */ \
(RESULT) = 1; \
while (fgets_unlocked (BUFFER, sizeof (BUFFER), FP) != NULL) \
- if (sscanf (BUFFER, "CPUs probed %*d active %d", &(RESULT)) == 1) \
+ if ((sscanf (BUFFER, "cpus active : %d", &(RESULT)) == 1) \
+ || (sscanf (BUFFER, "CPUs probed %*d active %d", \
+ &(RESULT)) == 1)) \
break; \
} \
while (0)
@@ -46,7 +48,8 @@
If there is no "CPUs ..." line then we are on a UP system. */ \
(RESULT) = 1; \
while (fgets_unlocked ((BUFFER), sizeof (BUFFER), (FP)) != NULL) \
- if (sscanf (buffer, "CPUs probed %d", &(RESULT)) == 1) \
+ if ((sscanf (buffer, "cpus detected : %d", &(RESULT)) == 1) \
+ || (sscanf (buffer, "CPUs probed %d", &(RESULT)) == 1)) \
break; \
} \
while (0)