-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation;
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
ec.set(node, "hostname", host)
ec.set(node, "username", user)
ec.set(node, "hostname", host)
ec.set(node, "username", user)
ec.set(ping, "command", "ping -c10 nepi.inria.fr")
ec.register_connection(ping, node)
collector = ec.register_resource("Collector")
ec.set(collector, "traceName", "stdout")
ec.set(ping, "command", "ping -c10 nepi.inria.fr")
ec.register_connection(ping, node)
collector = ec.register_resource("Collector")
ec.set(collector, "traceName", "stdout")
ec.register_connection(ping, collector)
def compute_metric_callback(ping, ec, run):
ec.register_connection(ping, collector)
def compute_metric_callback(ping, ec, run):
- for d in os.listdir(dirpath):
- path = os.path.join(dirpath, d)
+
+ for d in os.listdir(ec.exp_dir):
+ path = os.path.join(ec.exp_dir, d)