mirror of
https://github.com/romanz/amodem.git
synced 2026-02-24 16:18:12 +08:00
higher precision progress logging
This commit is contained in:
@@ -152,7 +152,7 @@ class Receiver(object):
|
||||
sampler.freq -= 0.01 * err * self.Tsym
|
||||
sampler.offset -= err
|
||||
log.debug(
|
||||
'Got %8.1f kB, realtime: %6.2f%%, drift: %+5.2f ppm',
|
||||
'Got %10.3f kB, realtime: %6.2f%%, drift: %+5.2f ppm',
|
||||
self.stats['rx_bits'] / 8e3,
|
||||
duration * 100.0 / (iter_index * self.Tsym),
|
||||
(1.0 - sampler.freq) * 1e6
|
||||
|
||||
@@ -47,7 +47,7 @@ class Sender(object):
|
||||
self.write(np.dot(symbols, self.carriers))
|
||||
if i % self.iters_per_report == 0:
|
||||
total_bits = i * Nfreq * self.modem.bits_per_symbol
|
||||
log.debug('Sent %8.1f kB', total_bits / 8e3)
|
||||
log.debug('Sent %10.3f kB', total_bits / 8e3)
|
||||
|
||||
|
||||
def main(config, src, dst):
|
||||
|
||||
Reference in New Issue
Block a user