diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-25 04:50:26 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-25 04:50:26 -0500 |
commit | 4492295a686082f9832bcc38b612cc37612d37d9 (patch) | |
tree | 8e37f042fccf455b159a80317dc0f1e9c1e536f9 | |
parent | 8f41144a0aee83c2f241eb1e0d4ac585a65b4afe (diff) | |
download | gpsd-4492295a686082f9832bcc38b612cc37612d37d9.tar.gz |
Fix a glitch when painting short values in a field.
-rw-r--r-- | gpsmon.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -221,6 +221,8 @@ void toff_update(WINDOW *win, int y, int x) { /* NOTE: can not use double here due to precision requirements */ struct timespec timedelta; + (void)wmove(win, y, x); + (void)wclrtoeol(win); TS_SUB(&timedelta, &time_offset.clock, &time_offset.real); if ( 86400 < (long)labs(timedelta.tv_sec) ) { /* more than one day off, overflow */ @@ -231,6 +233,7 @@ void toff_update(WINDOW *win, int y, int x) timespec_str( &timedelta, buf, sizeof(buf) ); (void)mvwprintw(win, y, x, "%s", buf); } + monitor_fixframe(win); } } /*@+type +noeffect@*/ @@ -247,6 +250,8 @@ void pps_update(WINDOW *win, int y, int x) if (pps_thread_lastpps(&session, &ppstimes) > 0) { /* NOTE: can not use double here due to precision requirements */ struct timespec timedelta; + (void)wmove(win, y, x); + (void)wclrtoeol(win); TS_SUB( &timedelta, &ppstimes.clock, &ppstimes.real); if ( 86400 < (long)labs(timedelta.tv_sec) ) { /* more than one day off, overflow */ @@ -257,6 +262,7 @@ void pps_update(WINDOW *win, int y, int x) timespec_str( &timedelta, buf, sizeof(buf) ); (void)mvwprintw(win, y, x, "%s", buf); } + monitor_fixframe(win); (void)wnoutrefresh(win); } /*@+type +noeffect@*/ |