Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 6dafbd0

Browse files
committed
bug fix in processing controller output
1 parent 847e2c7 commit 6dafbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyretic/tests/test_bucket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def tshark_filter_count(t_outfile, filter_fun):
115115
def ctlr_counts(c_outfile):
116116
c_out = open(c_outfile, 'r')
117117
buckets_counts = {}
118-
bucket_p = re.compile("Bucket [0-9]+ \(packet, byte\) counts: \[[0-9]+, [0-9]+\]")
118+
bucket_p = re.compile("Bucket [0-9a-zA-Z._]+ \(packet, byte\) counts: \[[0-9]+, [0-9]+\]")
119119
for line in c_out:
120120
if bucket_p.match(line.strip()):
121121
parts = line.strip().split()
122-
bucket_id = int(parts[1])
122+
bucket_id = parts[1]
123123
pkt_count = int(parts[-2][1:-1])
124124
byte_count = int(parts[-1][:-1])
125125
buckets_counts[bucket_id] = (pkt_count, byte_count)

0 commit comments

Comments
 (0)