diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-12-09 05:19:33 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2003-12-09 05:19:33 +0000 |
commit | 9f426b6cb081430148c1358727a8af50e80c9b8c (patch) | |
tree | 5419bfd8f9471a523fd51d580883d483cc058135 /TAO | |
parent | 167f0b6a1113da3b9a46176a7f6654cf97a61ba9 (diff) | |
download | ATCD-9f426b6cb081430148c1358727a8af50e80c9b8c.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/orbsvcs/performance-tests/LoadBalancing/Roundtrip.cpp | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/Roundtrip.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/Roundtrip.cpp index 64034c93def..c4203be4c46 100644 --- a/TAO/orbsvcs/performance-tests/LoadBalancing/Roundtrip.cpp +++ b/TAO/orbsvcs/performance-tests/LoadBalancing/Roundtrip.cpp @@ -9,34 +9,29 @@ ACE_RCSID(LoadBalancing, "$Id$") Roundtrip::Roundtrip (CORBA::ORB_ptr orb) - : orb_ (CORBA::ORB::_duplicate (orb)) + : orb_ (CORBA::ORB::_duplicate (orb)), + count_ (0) { - count_ = 0; } Test::Timestamp Roundtrip::test_method (Test::Timestamp send_time, - Test::number cl_number, - Test::number it_number + Test::number cl_number, + Test::number it_number ACE_ENV_ARG_DECL_NOT_USED) ACE_THROW_SPEC ((CORBA::SystemException)) { - long prime_number; - - if ( it_number < 100) - { - printf("Client number is %d\n", cl_number); - } + if (it_number < 100) + { + printf("Client number is %d\n", cl_number); + } if ((it_number % 2) == 0) - { - prime_number = ACE::is_prime (20000, 2, 10000); - return send_time; - } - else - { - return send_time; - } + { + (void) ACE::is_prime (20000, 2, 10000); + } + + return send_time; } void |