From 3730b7720ad65865c1731c72df662a2b1f0c7de5 Mon Sep 17 00:00:00 2001 From: Graham Northup Date: Thu, 6 Sep 2018 04:35:39 -0400 Subject: Increase display accuracy --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.py b/client.py index 0df7610..22f1161 100644 --- a/client.py +++ b/client.py @@ -185,7 +185,7 @@ def pygame_notes(): disp.blit(bgrwin, (0, 0)) disp.blit(sampwin, (BGR_WIDTH, 0)) if QUEUED_PCM: - tsurf = font.render('%08.6f'%(DRIFT_FACTOR,), True, (255, 255, 255), (0, 0, 0)) + tsurf = font.render('%+011.6g'%(DRIFT_FACTOR - 1,), True, (255, 255, 255), (0, 0, 0)) disp.fill((0, 0, 0), tsurf.get_rect()) disp.blit(tsurf, (0, 0)) pygame.display.flip() -- cgit v1.2.3-70-g09d2