Merge pull request #18702 from initialshl/extensions-better-decimal-display

Display one decimal place for extensions downloads in Millions
This commit is contained in:
João Moreno
2017-02-06 11:36:12 +01:00
committed by GitHub
@@ -75,7 +75,7 @@ export class InstallWidget implements IDisposable {
if (this.options.small) {
if (installCount > 1000000) {
installLabel = `${Math.floor(installCount / 1000000)}M`;
installLabel = `${Math.floor(installCount / 100000) / 10}M`;
} else if (installCount > 1000) {
installLabel = `${Math.floor(installCount / 1000)}K`;
}