Convert string to int
authorAndy Bavier <acb@cs.princeton.edu>
Thu, 12 Nov 2009 20:15:54 +0000 (20:15 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Thu, 12 Nov 2009 20:15:54 +0000 (20:15 +0000)
sfa/rspecs/aggregates/vini/utils.py

index 1704528..32f2bc4 100644 (file)
@@ -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):