From: genaud Date: Fri, 22 Oct 2010 11:44:56 +0000 (+0000) Subject: comment X-Git-Tag: v3_5~379 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/195011a04b27a42710b8bc68bf0d5b6578eca6c1 comment git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8445 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/contrib/network_model/calibrate_piecewise.py b/contrib/network_model/calibrate_piecewise.py index 6d05b83e4d..b8ce3b0621 100755 --- a/contrib/network_model/calibrate_piecewise.py +++ b/contrib/network_model/calibrate_piecewise.py @@ -1,5 +1,6 @@ #!/usr/bin/env python + import sys from math import sqrt @@ -81,6 +82,11 @@ for line in skampidat: timings.append(float(l[3]) / links) sizes.append(int(l[1])) +## adds message sizes of interest: if values are specified starting from the 6th command line arg +## and these values are found as message sizes in te log file, add it to the limits list. +## Each of these value si considered a potential inflexion point between two segments. +## +## If no value specified, a single segment is considered from 1st to last message size logged. limits = [] if len(sys.argv) > 5: for i in xrange(5, len(sys.argv)):