browser: truncate maximum usage score to 99
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 27 Apr 2017 23:31:34 +0000 (01:31 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 17:21:27 +0000 (19:21 +0200)
Even in theory 100% should be impossible.

browser.plp

index 5c3f769dcbc34ef88343d8845b9212d1c3d44059..a135d357c861c5279c3b7a27b21eebb5d12ba9b9 100644 (file)
@@ -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