diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-01-22 19:28:45 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-01-22 19:28:45 +0000 |
commit | e285b474d52d8d3b6d8f6521cb7f42988c12d36b (patch) | |
tree | b3851534574fa403daa5e005a1c496f8d0376b23 /TAO/orbsvcs/orbsvcs | |
parent | f0b7a5d2c412867b67ab16c50a87047451f67c76 (diff) | |
download | ATCD-e285b474d52d8d3b6d8f6521cb7f42988c12d36b.tar.gz |
ChangeLogTag: Thu Jan 22 13:28:04 2004 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/orbsvcs/orbsvcs')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Monitor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Monitor.cpp index 95fd694ccae..8c0f38eea8c 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Monitor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Monitor.cpp @@ -133,8 +133,16 @@ TAO_LB_CPU_Monitor::loads (ACE_ENV_SINGLE_ARG_DECL) # else +# if defined (ACE_LACKS_GETLOADAVG) + + const int samples = 0; + +# else + const int samples = ::getloadavg (loadavg, 1); +# endif /* ACE_LACKS_GETLOADAVG */ + # endif /* linux && ((__GLIBC__ == 2 && __GLIBC_MINOR__ < 2) || (!_BSD_SOURCE && !_GNU_SOURCE)) */ |