From 5c46cd1b3aa2421ef1e1b794b1c2358898cdf37a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 20 Dec 2019 06:58:27 +0000 Subject: 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 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. --- lib/PublicInbox/View.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/View.pm') 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); -- cgit v1.2.3-24-ge0c7