From 928fff1cc4ade58e3b361d2c3e69be1d06b7a32c Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 10 Aug 2005 15:35:41 +0000 Subject: bug recuperation arguments --- src/ivyperf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ivyperf.c b/src/ivyperf.c index f0ad069..9eb5c02 100755 --- a/src/ivyperf.c +++ b/src/ivyperf.c @@ -58,7 +58,7 @@ void Reply (IvyClientPtr app, void *user_data, IvyArgument args) int len; void* val; arg = IvyArgumentGetChildrens( args ); - IvyArgumentGetValue( args , &len, &val); + IvyArgumentGetValue( arg , &len, &val); IvySendMsg ("pong ts=%.*s tr=%f", len, val, currentTime()); } void Pong (IvyClientPtr app, void *user_data, IvyArgument args) @@ -71,10 +71,10 @@ void Pong (IvyClientPtr app, void *user_data, IvyArgument args) current = currentTime(); arg = IvyArgumentGetChildrens( args ); - IvyArgumentGetValue( args , &len, &val); + IvyArgumentGetValue( arg , &len, &val); ts = atof( val ); arg = IvyArgumentGetNextChild( arg ); - IvyArgumentGetValue( args , &len, &val); + IvyArgumentGetValue( arg , &len, &val); tr = atof( val ); roundtrip1 = tr-ts; roundtrip2 = current - tr; -- cgit v1.1