From 2f1b1c8ceded9bff5fa26d0899da04180f539e94 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 21 Jun 2010 18:05:26 -0400 Subject: Change weighting of account-name abbreviation Parent accounts are abbreviated even more, so that child accounts can show more text. --- src/format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index 946dcf80..93ce4ed4 100644 --- a/src/format.cc +++ b/src/format.cc @@ -540,7 +540,7 @@ string format_t::truncate(const unistring& ustr, else adjust = std::size_t (std::ceil(double(overflow) * - ((double(*i + counter) * double(iteration)) / + ((double(*i + counter*3) * double(iteration)) / (double(len_minus_last) - double(counter))))); DEBUG("format.abbrev", "Weight calc: (" << overflow << " * (((" << *i << " + " << counter << ") * " -- cgit v1.2.3