Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / examples / java / task / priority / Test.java
index 3d10a04..18993b9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2012-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -17,11 +17,8 @@ public class Test extends Process {
   }
 
   public void main(String[] args) throws MsgException {  
-    double computationAmount = 1.0;
-    double priority = 1.0;
-
-    computationAmount = Double.parseDouble(args[0]);
-    priority = Double.parseDouble(args[1]);
+    double computationAmount = Double.parseDouble(args[0]);
+    double priority = Double.parseDouble(args[1]);
 
     Msg.info("Hello! Running a task of size " + computationAmount + " with priority " + priority);