Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Make snapshots compatible with SMPI privatization of global variables
[simgrid.git] / tools / sg_xml_unit_converter.py
index 830e91f..3976f66 100644 (file)
@@ -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")])