mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-30 20:25:40 +01:00
Merge pull request #18702 from initialshl/extensions-better-decimal-display
Display one decimal place for extensions downloads in Millions
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user