# # # patch "ChangeLog" # from [65b9901f6a15ef0a7ade28f75e72cbb22b010a6d] # to [f9c19ff701fcbf3a39af2dc72d1b8667e45a2a25] # # patch "ui.cc" # from [416f27bf8eab5d3c36b4185cf452b43354f93e26] # to [1d1fcfee81b62f2698d9deb380c49f9c29765a67] # ============================================================ --- ChangeLog 65b9901f6a15ef0a7ade28f75e72cbb22b010a6d +++ ChangeLog f9c19ff701fcbf3a39af2dc72d1b8667e45a2a25 @@ -1,6 +1,11 @@ 2006-05-19 Richard Levitte - * ui.hh (struct ticker), ui.cc (ticker::ticker, + * ui.cc (tick_write_count::write_ticks): Simplify the condition + to check if the count width needs to be changed. + +2006-05-19 Richard Levitte + + * ui.hh (struct ticker), ui.cc (tick_write_count::ticker, ticker::write_ticks): Keep track of the last total we were given and recalculate the counter width each time we detect a change in total. The reason is that the counter is sometimes display even ============================================================ --- ui.cc 416f27bf8eab5d3c36b4185cf452b43354f93e26 +++ ui.cc 1d1fcfee81b62f2698d9deb380c49f9c29765a67 @@ -156,8 +156,7 @@ if ((tick->count_size == 0 && tick->kilocount) || - ((tick->count_size == 0 || tick->previous_total == 0) - && tick->use_total)) + (tick->use_total && tick->previous_total != tick->total)) { if (!tick->kilocount && tick->use_total) {