The unified diff between revisions [24fb0b25..] and [8032bf83..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'ui.cc'
#
#
# patch "ui.cc"
# from [5c306ceb398f305e5af179008c4bf6165526e87a]
# to [8544648c4a23b8e79f980da6ed3a4ab81ff0d509]
#
============================================================
--- ui.cc 5c306ceb398f305e5af179008c4bf6165526e87a
+++ ui.cc 8544648c4a23b8e79f980da6ed3a4ab81ff0d509
@@ -65,13 +65,14 @@ ticker::ticker(string const & tickname,
};
ticker::ticker(string const & tickname, string const & s, size_t mod,
- bool kilocount) :
+ bool kilocount, bool skip_display) :
ticks(0),
mod(mod),
total(0),
previous_total(0),
kilocount(kilocount),
use_total(false),
+ may_skip_display(skip_display),
keyname(tickname),
name(_(tickname.c_str())),
shortname(s),
@@ -246,6 +247,12 @@ void tick_write_count::write_ticks()
{
ticker * tick = i->second;
+ // if the display of this ticker has no great importance, i.e. multiple
+ // other tickers should be displayed at the same time, skip its display
+ // to save space on terminals
+ if (tick->may_skip_display)
+ continue;
+
if ((tick->count_size == 0 && tick->kilocount)
||
(tick->use_total && tick->previous_total != tick->total))