]> AND Public Git Repository - simgrid.git/blobdiff - examples/python/exec-dvfs/exec-dvfs.py
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Python network-nonlinear example
[simgrid.git] / examples / python / exec-dvfs / exec-dvfs.py
index e712791e916be34fe860de8347ad7da8e58ae70c..54393ecff4bf98a9e5896ea4e7dbd939538517b9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.
+# Copyright (c) 2007-2021. 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.
@@ -30,7 +30,7 @@ class Dvfs:
 
         host.pstate = new_pstate
 
-        this_actor.info("Current power peak={:f}".format(host.speed))
+        this_actor.info("Changed power peak={:f}".format(host.speed))
 
         # Run a second task
         this_actor.execute(workload)
@@ -42,7 +42,7 @@ class Dvfs:
         host2 = Host.by_name("MyHost2")
         this_actor.info("Count of Processor states={:d}".format(host2.get_pstate_count()))
 
-        this_actor.info("Current power peak={:f}".format(host2.speed))
+        this_actor.info("Final power peak={:f}".format(host2.speed))
 
 if __name__ == '__main__':
     e = Engine(sys.argv)