format realtime logging

This commit is contained in:
Roman Zeyde
2014-07-21 14:14:51 +03:00
parent 4f2f02b580
commit 26f2f2bb03

View File

@@ -180,7 +180,7 @@ def demodulate(symbols, filters, freqs, sampler):
if i and i % baud == 0:
mean_err = np.array([e for v in errors.values() for e in v])
correction = np.mean(np.angle(mean_err)) / (2*np.pi)
log.debug('%10.1f kB, realtime: %.2f%%, sampling error: %+.3f%%',
log.debug('%10.1f kB, realtime: %6.2f%%, sampling error: %+.3f%%',
stats['rx_bits'] / 8e3,
(time.time() - stats['rx_start']) * 100.0 / (i*Tsym),
correction * 1e2)