X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bc3a566b71f9e9acf92551b1799abf0a9b891aca..1b240e4f519d96a71e0ee5ec062b908d1ba64905:/examples/python/exec-dvfs/exec-dvfs.py diff --git a/examples/python/exec-dvfs/exec-dvfs.py b/examples/python/exec-dvfs/exec-dvfs.py index f84b67348a..b04e0b9c27 100644 --- a/examples/python/exec-dvfs/exec-dvfs.py +++ b/examples/python/exec-dvfs/exec-dvfs.py @@ -1,13 +1,13 @@ -# Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. +# Copyright (c) 2007-2019. 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. +# under the terms of the license (GNU LGPL) which comes with this package. import sys from simgrid import * -class dvfs: +class Dvfs: def __call__(self): workload = 100E6 host = this_actor.get_host() @@ -48,9 +48,9 @@ if __name__ == '__main__': e = Engine(sys.argv) if len(sys.argv) < 2: raise AssertionError("Usage: exec-dvfs.py platform_file [other parameters] (got {:d} params)".format(len(sys.argv))) - + e.load_platform(sys.argv[1]) - Actor.create("dvfs_test", Host.by_name("MyHost1"), dvfs()) - Actor.create("dvfs_test", Host.by_name("MyHost2"), dvfs()) + Actor.create("dvfs_test", Host.by_name("MyHost1"), Dvfs()) + Actor.create("dvfs_test", Host.by_name("MyHost2"), Dvfs()) e.run()