diff options
author | Eric Wong <e@80x24.org> | 2019-12-20 06:58:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-21 05:42:44 +0000 |
commit | 5c46cd1b3aa2421ef1e1b794b1c2358898cdf37a (patch) | |
tree | 9bfa152280e48c7d43ed5970615797c2c175c334 /lib/PublicInbox/View.pm | |
parent | f6f0cfb7f3b673f05a95e8c9c3bc7d31580feadc (diff) | |
download | public-inbox-5c46cd1b3aa2421ef1e1b794b1c2358898cdf37a.tar.gz |
searchview: save a column in &x=t thread skeleton
Displaying "100%" wastes a precious column. Show "99%" instead since there's little practical difference and <xapian/mset.h> states: Note that these generally aren't percentages of anything meaningful (unless you use a custom weighting formula where they are!) And we're not using a custom weighting formula.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5924a2a7..0b102638 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -955,10 +955,10 @@ sub skel_dump { if (my $pct = $ctx->{pct}) { $pct = $pct->{$smsg->{mid}}; if (defined $pct) { - $d .= (sprintf(' % 3u', $pct) . '%'); + $d .= (sprintf(' % 2u', $pct) . '%'); } else { $unmatched = 1; - $d .= ' '; + $d .= ' '; } } $d .= ' ' . indent_for($level) . th_pfx($level); @@ -1022,7 +1022,7 @@ sub _skel_ghost { my $mid = $node->{id}; my $d = ' [not found] '; - $d .= ' ' if exists $ctx->{pct}; + $d .= ' ' if exists $ctx->{pct}; $d .= indent_for($level) . th_pfx($level); my $upfx = $ctx->{-upfx}; my $m = PublicInbox::Hval->new_msgid($mid); |