Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix java builds
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 15 Jul 2017 21:02:55 +0000 (23:02 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 15 Jul 2017 21:02:55 +0000 (23:02 +0200)
src/bindings/java/jmsg_host.cpp

index fc8db65..e2208b3 100644 (file)
@@ -371,7 +371,7 @@ JNIEXPORT jint JNICALL Java_org_simgrid_msg_Host_getPstatesCount(JNIEnv* env, jo
 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCurrentPowerPeak(JNIEnv* env, jobject jhost)
 {
   msg_host_t host = jhost_get_native(env, jhost);
-  return MSG_host_get_current_power_peak(host);
+  return MSG_host_get_speed(host);
 }
 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getPowerPeakAt(JNIEnv* env, jobject jhost, jint pstate)
 {