commit 388b24d60f37266ab8fbe53238f25ec75935b324 from: Mark Jamsek date: Mon Jan 23 04:04:18 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 - 16e4df9de6d20690d5c15ff2fa3066afca1143d9 commit + 388b24d60f37266ab8fbe53238f25ec75935b324 blob - 35282ce50aa4dec0745aa6402cd0b50d87b7416b blob + 13d7ed16f0bce469f1ab9d48abd5aeb041b9ec82 --- tog/tog.c +++ tog/tog.c @@ -1739,7 +1739,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);