summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2023-01-15 11:01:49 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2023-01-15 11:01:49 +0100
commitb30753f1a1b18c831e89223ec01db66231b5a64a (patch)
tree8839fc17461b7ec6e0bc2c0f9568dd0dba9c9fe8 /TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
parent6f36dbed40cbedb60f2c40376d360c704d7db93b (diff)
downloadATCD-b30753f1a1b18c831e89223ec01db66231b5a64a.tar.gz
Removed HPUX support
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
index a0cebd7da5a..87c6e2d03f2 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
@@ -196,28 +196,9 @@ TAO_LB_CPU_Load_Average_Monitor::loads ()
}
else
throw CORBA::TRANSIENT (); // Correct exception?
-
-#elif defined (__hpux)
-
- struct pst_dynamic psd;
-
- if (::pstat_getdynamic (&psd, sizeof (psd), (size_t) 1, 0) != -1)
- {
- const long & num_processors = psd.psd_proc_cnt;
-
- ACE_ASSERT (num_processors > 0);
-
- if (num_processors > 0)
- load = psd.psd_avg_1_min / num_processors;
- else
- throw CORBA::TRANSIENT (); // Correct exception?
- }
- else
- throw CORBA::TRANSIENT (); // Correct exception?
-
#endif
-#if defined (ACE_LINUX) || defined (sun) || defined (__hpux) || defined(__NetBSD__) || defined (__APPLE__)
+#if defined (ACE_LINUX) || defined (sun) || defined(__NetBSD__) || defined (__APPLE__)
CosLoadBalancing::LoadList * tmp = 0;
ACE_NEW_THROW_EX (tmp,
CosLoadBalancing::LoadList (1),