browser: only annotate end date of wikimedia data
[sheet.git] / tools / mkusage-wikimedia
index a5a4e58daf2d93647c4b91668e10d936060f7647..a50d89942069ce8124dd74ab17fd839b1c090f3f 100755 (executable)
@@ -41,13 +41,12 @@ while (my $row = readline) {
        $date =~ $recent or next;
        $name =~ y/ /-/;
        my $browser = $BROWSERID{$name} or next;
+       $version =~ s/\A-\z/0/;
        $count{$browser}{$version} += $pct;
        $count{-total} += $pct;
-       $count{-date}->{$date}++;
+       $count{-date} = $date;
 }
 
-$_ = join ' to ', (sort keys %{$_})[0, -1] for $count{-date};
-
 my $mult = 100 / delete $count{-total};
 for (values %count) {
        ref $_ eq 'HASH' or next;