trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject svn commit: r1061106 - /trafficserver/traffic/trunk/mgmt/utils/WebMgmtUtils.cc
Date Thu, 20 Jan 2011 02:40:22 GMT
Author: igalic
Date: Thu Jan 20 02:40:22 2011
New Revision: 1061106

URL: http://svn.apache.org/viewvc?rev=1061106&view=rev
Log:
If we don't ax computeXactMax(), this falls under [TS-648]

Modified:
    trafficserver/traffic/trunk/mgmt/utils/WebMgmtUtils.cc

Modified: trafficserver/traffic/trunk/mgmt/utils/WebMgmtUtils.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/mgmt/utils/WebMgmtUtils.cc?rev=1061106&r1=1061105&r2=1061106&view=diff
==============================================================================
--- trafficserver/traffic/trunk/mgmt/utils/WebMgmtUtils.cc (original)
+++ trafficserver/traffic/trunk/mgmt/utils/WebMgmtUtils.cc Thu Jan 20 02:40:22 2011
@@ -760,13 +760,7 @@ computeXactMax()
   RecInt maxXact = 0;
   int err = REC_ERR_FAIL;
 
-#if defined(hpux)
-  numCPU = pthread_num_processors_np();
-#elif defined(freebsd)
-  numCPU = 1;
-#else
-  numCPU = sysconf(_SC_NPROCESSORS_ONLN);
-#endif
+  numCPU = ink_number_of_processors();
   err = RecGetRecordFloat("proxy.config.admin.load_factor", &loadFactor);
 
   if (err == REC_ERR_OKAY || loadFactor < 20.0) {



Mime
View raw message