From: Mischa POSLAWSKY Date: Thu, 27 Apr 2017 13:40:26 +0000 (+0200) Subject: browser: omit superfluous usage class X-Git-Tag: v1.10~51 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/453628e1984780185704e5039030beb0f910f16a browser: omit superfluous usage class Unused pp## does not offer anything over p##. --- diff --git a/browser.plp b/browser.plp index a53f045..202f252 100644 --- a/browser.plp +++ b/browser.plp @@ -196,7 +196,6 @@ $canihas ||= { } } @browsers }; # fallback hash based on release semantics -my $usagemax = (max(map { ref $_ eq 'HASH' && sum(values %$_) } values %$canihas) // 1) / 100; my $usagepct = 1; # score multiplier for 0..100 result # normalise usage percentage to only include shown browsers @@ -415,7 +414,6 @@ sub saybrowsercols { sprintf('p%01d', $usage * ($usagepct - .0001) / 10), sprintf('p%02d', $usage * ($usagepct - .0001)), ), - sprintf('pp%02d', $usage / $usagemax), ), scalar @span, $title,