summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-21 21:08:37 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-21 21:08:37 +0000
commit993bea83732043d16f512b0423f3a0f3669c48f5 (patch)
tree5a0349bfe3550c897fdb28acac554dcd694942f2
parenta8c071dd190201eabac71ba49bb69ae3a0c66f53 (diff)
downloadATCD-993bea83732043d16f512b0423f3a0f3669c48f5.tar.gz
ChangeLogTag: Sat Apr 21 16:08:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
-rw-r--r--TAO/ChangeLogs/ChangeLog-02a7
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp19
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp7
3 files changed, 22 insertions, 11 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a
index ba3531142d2..b26a27c6f82 100644
--- a/TAO/ChangeLogs/ChangeLog-02a
+++ b/TAO/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,10 @@
+Sat Apr 21 16:08:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
+
+ * examples/PluggableUDP/tests/Performace/UDP_PerformanceClient.cpp:
+ * examples/PluggableUDP/tests/Performace/UDP_i.cpp:
+
+ Fixed the test output.
+
Sat Apr 21 05:50:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
* examples/PluggableUDP/DIOP/DIOP_Connector.cpp:
diff --git a/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp b/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp
index b6ea0d987ff..f5ecdec245f 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp
+++ b/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp
@@ -130,27 +130,30 @@ UDP_PerformanceClient::svc ()
"\nError: No callbacks received!\n\n"));
}
- if (delta_micro_seconds <= final_delta_micro_seconds_
- && current_wrong_messages == 0)
+
{
ACE_Time_Value tv;
timer.elapsed_time (tv);
- ACE_UINT64 calls_per_second =
- (1000 * burst_messages_) / tv.msec ();
+ ACE_UINT32 calls_per_second = (1000L * burst_messages_) / tv.msec ();
ACE_DEBUG ((LM_DEBUG,
- "\n Time needed %u s %u us (%d ms) for %d messages"
- "\n Performance = %u asynch calls per second\n\n",
+ "\n Time needed %d s %d us (%d ms) for %d messages"
+ "\n Performance = %d asynch calls per second\n\n",
tv.sec (),
tv.usec (),
tv.msec (),
burst_messages_,
calls_per_second));
+ }
+
+ if (delta_micro_seconds <= final_delta_micro_seconds_
+ && current_wrong_messages == 0)
+ {
break;
}
- }
-
+ }
+
// shut down remote ORB
udp_->shutdown (ACE_TRY_ENV);
ACE_TRY_CHECK;
diff --git a/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp b/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp
index e61cac8b75e..9071fa68605 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp
+++ b/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp
@@ -33,12 +33,13 @@ UDP_i::setResponseHandler (UDP_ptr udpHandler,
CORBA::Environment &)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ if (CORBA::is_nil (udpHandler))
+ ACE_DEBUG ((LM_DEBUG,
+ "response handler is nil\n"));
+
this->responseHandler_ = UDP::_duplicate (udpHandler);
- ACE_DEBUG ((LM_DEBUG,
- "UDP_i::svc: Received exception\n"));
}
-
void
UDP_i::invoke (const char * client_name,
CORBA::Long request_id,