X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8a30d839e791237688f68d4047fef5a30293dfc4..f4782c312dc48a0fdce1934a03f8392ae4f9ce5e:/tools/sg_xml_unit_converter.py diff --git a/tools/sg_xml_unit_converter.py b/tools/sg_xml_unit_converter.py index 830e91fd62..3976f667b1 100644 --- a/tools/sg_xml_unit_converter.py +++ b/tools/sg_xml_unit_converter.py @@ -1,6 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# Copyright (c) 2013-2014. 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. + # grep -ohrI 'bw=".*"' . | sort | uniq import sys, fnmatch, os @@ -46,16 +52,16 @@ for root, dirnames, filenames in os.walk(sys.argv[1]): power_formats = formats([( "1E0", "f"), ( "1E3", "kf"), - ( "1E6", "mf"), - ( "1E9", "gf"), - ("1E12", "tf"), - ("1E15", "pt"), - ("1E18", "ef"), - ("1E21", "zf")]) + ( "1E6", "Mf"), + ( "1E9", "Gf"), + ("1E12", "Tf"), + ("1E15", "Pt"), + ("1E18", "Ef"), + ("1E21", "Zf")]) xml = format(xml, power_formats, "power") bandwidth_formats = formats([( "1E0", "Bps"), - ( "1E3", "KBps"), + ( "1E3", "kBps"), ( "1E6", "MBps"), ( "1E9", "GBps"), ("1E12", "TBps")])