[PR #210] [MERGED] Show precise file size with two decimal places when size >= 1GB #516

Closed
opened 2026-04-08 16:53:15 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/210
Author: @jessehu
Created: 5/16/2023
Status: Merged
Merged: 5/18/2023
Merged by: @sigoden

Base: mainHead: precise-size


📝 Commits (1)

  • 707c3f9 Show precise file size with two decimal places when size >= 1GB

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 assets/index.js (+6 -2)

📄 Description

Manually tested and the displayed file size is like:

  • 5.18 GB instead of 5 GB
  • 1.7 GB instead of 2 GB
  • 104 MB is still 104 MB
  • 33 B is still 33 B

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/210 **Author:** [@jessehu](https://github.com/jessehu) **Created:** 5/16/2023 **Status:** ✅ Merged **Merged:** 5/18/2023 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `precise-size` --- ### 📝 Commits (1) - [`707c3f9`](https://github.com/sigoden/dufs/commit/707c3f9a130a612828a07afc39b04ca66cc84b9c) Show precise file size with two decimal places when size >= 1GB ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `assets/index.js` (+6 -2) </details> ### 📄 Description Manually tested and the displayed file size is like: * 5.18 GB instead of 5 GB * 1.7 GB instead of 2 GB * 104 MB is still 104 MB * 33 B is still 33 B --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:15 +03:00
zhus closed this issue 2026-04-08 16:53:15 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#516