From 4109c04daf11f4148090f3a2f0b1f634a5bfba64 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 20 Jul 2014 17:30:32 +0300 Subject: [PATCH] fix ECC->overhead logging message in send.py --- send.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/send.py b/send.py index 1fb3c25..252d2ee 100755 --- a/send.py +++ b/send.py @@ -64,8 +64,8 @@ def main(fname): for block in ecc.encode(data): buf.extend(block) bits = list(to_bits(buf)) - ecc_ratio = 1.0 - len(data)*8.0 / len(bits) - log.info('%d bits modulated (%.1f%% ECC)', len(bits), ecc_ratio * 100) + ratio = 1.0 - len(data)*8.0 / len(bits) + log.info('%d bits modulated (%.1f%% overhead)', len(bits), ratio * 100) modulate(fd, bits) data_size = fd.tell() - training_size log.info('%.3f seconds of data audio',