From 03abf85a7ec9775993766a3fd10cd2876aef0b42 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 28 Apr 2017 01:31:34 +0200 Subject: [PATCH 1/1] browser: truncate maximum usage score to 99 Even in theory 100% should be impossible. --- browser.plp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser.plp b/browser.plp index 5c3f769..a135d35 100644 --- a/browser.plp +++ b/browser.plp @@ -195,7 +195,7 @@ $canihas ||= { my $usagepct = 1; # score multiplier for 0..100 result # normalise usage percentage to only include shown browsers -$usagepct = 100.01 / featurescore({ # yes for every possible version +$usagepct = 99.99 / featurescore({ # yes for every possible version map { $_ => { map {$_ => 'y'} map { @{$_} } @{$versions{$_}} } } keys %versions }); $_->{usage} = featurescore($_->{stats}) * $usagepct -- 2.30.0