Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Expose Host Load for Java API through JNI
[simgrid.git] / examples / java / cloud / migration / XVM.java
index 414c980..6c24b50 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -46,8 +46,8 @@ public class XVM extends VM {
     return this.daemon;
   }
 
-  public int getLoad(){
-    System.out.println("Remaining comp:" + this.daemon.getRemaining());
+  public double getLoad(){
+    Msg.info("Remaining comp:" + this.daemon.getRemaining());
     return this.currentLoad;
   }