Skip to content

Commit 64c1359

Browse files
ivafanasandikleen
authored andcommitted
toplev: fix ValueError on string to float conversion.
1 parent ce90ae7 commit 64c1359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toplev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,7 @@ def do_execute(rlist, summary, evstr, flat_rmap, out, rest, resoff, revnum):
24692469
multiplex = float('nan')
24702470
event = event.rstrip()
24712471
if re.match(r"\s*[0-9.]+", count):
2472-
val = float(count)
2472+
val = float(count.replace(",", "."))
24732473
elif re.match(r"\s*<", count):
24742474
account[event].errors[count.replace("<","").replace(">","")] += 1
24752475
multiplex = 0.

0 commit comments

Comments
 (0)