Skip to content

Commit

Permalink
fix: remove rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen committed Jul 5, 2023
1 parent d975ff8 commit 274b5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/share/src/analytics/AnalyticsData.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
const units = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte"]
const bytes = (n: number) => {
const unit_i = Math.min(units.length - 1, Math.floor(Math.log(n) / Math.log(1000)));
const unit_n = Math.round(n / (1000 ** unit_i));
const unit_n = n / (1000 ** unit_i);
const f = new Intl.NumberFormat(lang, {
style: "unit",
Expand Down

0 comments on commit 274b5a8

Please sign in to comment.