From 9899feb3c58364b85481a20d6782bc11810abc49 Mon Sep 17 00:00:00 2001 From: alebre Date: Thu, 12 Sep 2013 17:13:31 +0200 Subject: [PATCH] Fix silly bug in msg process sleep bindings - Adrien --- src/bindings/java/jmsg_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/java/jmsg_process.c b/src/bindings/java/jmsg_process.c index 2f6216eeba..2edf52824b 100644 --- a/src/bindings/java/jmsg_process.c +++ b/src/bindings/java/jmsg_process.c @@ -335,7 +335,7 @@ Java_org_simgrid_msg_Process_isSuspended(JNIEnv * env, JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_sleep(JNIEnv *env, jclass cls, jlong jmillis, jint jnanos) { - double time = jmillis / 1000 + jnanos / 1000; + double time = ((double)jmillis) / 1000 + ((double)jnanos) / 1000000000; msg_error_t rv; rv = MSG_process_sleep(time); if (rv != MSG_OK) { -- 2.20.1