Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / examples / deprecated / java / energy / consumption / EnergyConsumer.java
index 59604a5..9aa457c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2019. The SimGrid Team.
+/* Copyright (c) 2006-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -18,7 +18,7 @@ public class EnergyConsumer extends Process {
   }
 
   public void main(String[] args) throws MsgException {
-     Msg.info("Energetic profile: " + getHost().getProperty("watt_per_state"));
+     Msg.info("Energetic profile: " + getHost().getProperty("wattage_per_state"));
      Msg.info("Initial peak speed= " + getHost().getSpeed() + " flop/s; Energy dissipated = "
               + getHost().getConsumedEnergy() + " J");