From 27edb4f1fdaee04c82770e9b2f164c9661f40926 Mon Sep 17 00:00:00 2001 From: joka Date: Tue, 17 Jan 2017 12:40:59 +0100 Subject: [PATCH] small fix for link params --- src/emuvim/dcemulator/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emuvim/dcemulator/net.py b/src/emuvim/dcemulator/net.py index faf758c..a08a9e1 100755 --- a/src/emuvim/dcemulator/net.py +++ b/src/emuvim/dcemulator/net.py @@ -183,7 +183,7 @@ class DCNetwork(Containernet): edge_attributes = [p for p in params if p in weight_metrics] for attr in edge_attributes: # if delay: strip ms (need number as weight in graph) - match = re.search('([0-9]*\.?[0-9]+)', params[attr]) + match = re.search('([0-9]*\.?[0-9]+)', str(params[attr])) if match: attr_number = match.group(1) else: -- 2.17.1