mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-04-25 12:45:54 +03:00
[GH-ISSUE #71] Use Mebibytes As Universal Base Storage Unit #47
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/panel#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ericwang401 on GitHub (Jan 15, 2024).
Original GitHub issue: https://github.com/ConvoyPanel/panel/issues/71
Is there an existing feature request for this?
Describe the feature you would like to see.
Currently, Convoy stores storage units as mebibytes in the database (because of the max integer limit with MySQL's integer datatype) and converts it back to bytes when interacting with the value. This conversion can cause a little confusion and has a little bit of the mental overhead.
One such example is the frontend where users input mebibytes instead of bytes–inputting bytes is ridiculous given the large quantity of storage and memory nowadays. The developer has to remember to convert between the two values, and it's absolutely annoying and can lead to bugs.
Since absolutely no one uses bytes, mebibytes should be used throughout all the code.
Describe the solution you'd like.
Remove the byte to mebibyte and vice versa conversion.
Additional context to this request.
No response