summaryrefslogtreecommitdiff
path: root/python/m5/convert.py
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-04-07 16:34:02 -0400
committerKevin Lim <ktlim@umich.edu>2005-04-07 16:34:02 -0400
commitdcedd7866e35adc1e0fbc081188b259ffc7bbdf5 (patch)
treefee54c1dcea007dc2e1256b8b56e87d812c5fd3d /python/m5/convert.py
parentd261ee86c461a5feaefb432a54d56e2a393f4081 (diff)
parent9f2568f966a0ce36bfd7b3114aac1fcf419566c4 (diff)
downloadgem5-dcedd7866e35adc1e0fbc081188b259ffc7bbdf5.tar.xz
Hand merge
base/traceflags.py: Include new flags --HG-- extra : convert_revision : 8017cbe256860dce8b1efc1b4e1e81e883895b90
Diffstat (limited to 'python/m5/convert.py')
-rw-r--r--python/m5/convert.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/m5/convert.py b/python/m5/convert.py
index 6ccefd2fc..a89303687 100644
--- a/python/m5/convert.py
+++ b/python/m5/convert.py
@@ -153,15 +153,15 @@ def toNetworkBandwidth(value):
raise TypeError, "wrong type '%s' should be str" % type(value)
if value.endswith('Tbps'):
- return float(value[:-3]) * tera
+ return float(value[:-4]) * tera
elif value.endswith('Gbps'):
- return float(value[:-3]) * giga
+ return float(value[:-4]) * giga
elif value.endswith('Mbps'):
- return float(value[:-3]) * mega
+ return float(value[:-4]) * mega
elif value.endswith('kbps'):
- return float(value[:-3]) * kilo
+ return float(value[:-4]) * kilo
elif value.endswith('bps'):
- return float(value[:-2])
+ return float(value[:-3])
else:
return float(value)