We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd33f64 commit ef6d76eCopy full SHA for ef6d76e
packages/angular_devkit/build_angular/src/angular-cli-files/utilities/stats.ts
@@ -18,9 +18,9 @@ export function formatSize(size: number): string {
18
}
19
20
const abbreviations = ['bytes', 'kB', 'MB', 'GB'];
21
- const index = Math.floor(Math.log(size) / Math.log(1000));
+ const index = Math.floor(Math.log(size) / Math.log(1024));
22
23
- return `${+(size / Math.pow(1000, index)).toPrecision(3)} ${abbreviations[index]}`;
+ return `${+(size / Math.pow(1024, index)).toPrecision(3)} ${abbreviations[index]}`;
24
25
26
0 commit comments