commit b185e033101e0834eb18f8b75f5c7a243f7c2208 from: Mark Jamsek via: Thomas Adam date: Mon Jan 23 18:21:06 2023 UTC tog: fix typo that makes condition always false In view_loop(), we initialise at a refresh rate of one tenth per second before dropping to one second updates; the reduction was never hit due to the typo. Reviewed as part of the following diff adding action reports to user events. ok op@ commit - 6e58d3c9404cfe3f05729f28b8478e6b8c2155d2 commit + b185e033101e0834eb18f8b75f5c7a243f7c2208 blob - 18bedc311aae2c5285002daa766c494a456e1ac5 blob + 190609007a2fd6c3083baab51a2f52921a18e887 --- tog/tog.c +++ tog/tog.c @@ -1744,7 +1744,7 @@ view_loop(struct tog_view *view) while (!TAILQ_EMPTY(&views) && !done && !tog_thread_error && !tog_fatal_signal_received()) { /* Refresh fast during initialization, then become slower. */ - if (fast_refresh && fast_refresh-- == 0) + if (fast_refresh && --fast_refresh == 0) halfdelay(10); /* switch to once per second */ err = view_input(&new_view, &done, view, &views);