#!/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
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")])