git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3894a7e
)
Convert string to int
author
Andy Bavier
<acb@cs.princeton.edu>
Thu, 12 Nov 2009 20:15:54 +0000
(20:15 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Thu, 12 Nov 2009 20:15:54 +0000
(20:15 +0000)
sfa/rspecs/aggregates/vini/utils.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/aggregates/vini/utils.py
b/sfa/rspecs/aggregates/vini/utils.py
index
1704528
..
32f2bc4
100644
(file)
--- a/
sfa/rspecs/aggregates/vini/utils.py
+++ b/
sfa/rspecs/aggregates/vini/utils.py
@@
-494,7
+494,7
@@
class Topology:
for l in linkspecs:
n1 = nodedict[l['endpoint'][0]]
n2 = nodedict[l['endpoint'][1]]
- bps =
l['kbps'][0]
* 1000
+ bps =
int(l['kbps'][0])
* 1000
self.nodelinks.append(Link(n1, n2, bps))
def nodeTopoFromSliceTags(self, slice):