There was an error while loading. Please reload this page.
2 parents 2a86b4c + 7d94fee commit 2935cc8Copy full SHA for 2935cc8
ecg/ecg.py
@@ -357,14 +357,14 @@ def legend(self):
357
vrate = float(ecgdata.get('VRate'))
358
except (TypeError, ValueError):
359
try:
360
- vrate = (
+ vrate = "%.1f" % (
361
60.0 / self.duration *
362
self.samples / float(ecgdata.get('RR Interval'))
363
)
364
except (TypeError, ValueError, ZeroDivisionError):
365
vrate = "(unknown)"
366
367
- ret_str = "%s: %.1f BPM\n" % (i18n.ventr_freq, vrate)
+ ret_str = "%s: %s BPM\n" % (i18n.ventr_freq, vrate)
368
ret_str_tmpl = "%s: %s ms\n%s: %s ms\n%s: %s/%s ms\n%s: %s %s %s"
369
370
ret_str += ret_str_tmpl % (
0 commit comments