about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-20 06:58:27 +0000
committerEric Wong <e@80x24.org>2019-12-21 05:42:44 +0000
commit5c46cd1b3aa2421ef1e1b794b1c2358898cdf37a (patch)
tree9bfa152280e48c7d43ed5970615797c2c175c334 /lib/PublicInbox/View.pm
parentf6f0cfb7f3b673f05a95e8c9c3bc7d31580feadc (diff)
downloadpublic-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.pm6
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);