summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorbustico2008-05-20 16:59:31 +0000
committerbustico2008-05-20 16:59:31 +0000
commit844fa2212c691828172475528b3565e891feeef0 (patch)
treea321afdf32ded704a5486356eb57a3e28654bece /tools
parentf47a9932269b8dddf50b6d0c2bf3f7fb6084e889 (diff)
downloadivy-c-844fa2212c691828172475528b3565e891feeef0.zip
ivy-c-844fa2212c691828172475528b3565e891feeef0.tar.gz
ivy-c-844fa2212c691828172475528b3565e891feeef0.tar.bz2
ivy-c-844fa2212c691828172475528b3565e891feeef0.tar.xz
minor fix specific to macosx
Diffstat (limited to 'tools')
-rw-r--r--tools/ivythroughput.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/ivythroughput.cpp b/tools/ivythroughput.cpp
index 1803e66..8100dea 100644
--- a/tools/ivythroughput.cpp
+++ b/tools/ivythroughput.cpp
@@ -196,6 +196,9 @@ int main(int argc, char *argv[])
for (unsigned int i=0; i< numClients; i++) {
if ((pid = fork ()) == 0) {
// fils
+#ifdef __APPLE__
+ usleep (200 * 1000);
+#endif
switch (kindOfTest) {
case throughput :
recepteur_tp (bus, kindOfTest, i, regexps, 0);
@@ -495,9 +498,13 @@ void congestCB ( IvyClientPtr app, void *user_data, IvyApplicationEvent event )
break;
#endif
case IvyApplicationConnected:
- // printf("Application:%s : Connected\n", appName.c_str());
+#ifdef __APPLE__
+ printf("Application:%s : Connected\n", appName.c_str());
+#endif
case IvyApplicationDisconnected:
- // printf("Application:%s : Disconnected\n", appName.c_str());
+#ifdef __APPLE__
+ printf("Application:%s : Disconnected\n", appName.c_str());
+#endif
break;
}
}
@@ -551,7 +558,7 @@ void recepteurReadyCB (IvyClientPtr app, void *user_data, int argc, char *argv[]
for (unsigned int i=0; i< numClients; i++) {
if (recReady[i]==false) {
- // printf ("Emetteur : manque recepteur [%d/%d]\n", i, numClients-1);
+ printf ("Emetteur :Recepteur[%d] OK, manque recepteur [%d/%d]\n", instance, i, numClients-1);
readyToStart = false;
}
}