[netperf-dev] netperf4 commit notice r191 - trunk/src
raj at netperf.org
raj at netperf.org
Fri Jun 30 11:50:22 PDT 2006
Author: raj
Date: 2006-06-30 11:50:20 -0700 (Fri, 30 Jun 2006)
New Revision: 191
Modified:
trunk/src/netsysstats_kstat10.c
Log:
make sure to retrieve the number of CPUs under Solaris
Modified: trunk/src/netsysstats_kstat10.c
===================================================================
--- trunk/src/netsysstats_kstat10.c 2006-06-30 01:06:50 UTC (rev 190)
+++ trunk/src/netsysstats_kstat10.c 2006-06-30 18:50:20 UTC (rev 191)
@@ -99,7 +99,7 @@
netsysstat_data_t *tsd = GET_TEST_DATA(test);
NETPERF_DEBUG_ENTRY(test->debug,test->where);
- tsd->num_cpus = 1;
+ tsd->num_cpus = sysconf(_SC_NPROCESSORS_ONLN);
kc = kstat_open();
if (kc == NULL) {
More information about the netperf-dev
mailing list