mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-22 03:12:30 +03:00
[PR #374] [MERGED] Add config variable to change between MiB and MB
#720
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/374
Author: @Boy132
Created: 6/11/2024
Status: ✅ Merged
Merged: 6/13/2024
Merged by: @Boy132
Base:
main← Head:config/mebibytes📝 Commits (1)
0e5ddeeadd config variable for binary prefix📊 Changes
7 files changed (+21 additions, -19 deletions)
View changed files
📝
app/Filament/Resources/NodeResource/Pages/CreateNode.php(+3 -3)📝
app/Filament/Resources/NodeResource/Pages/EditNode.php(+3 -3)📝
app/Filament/Resources/NodeResource/Pages/ListNodes.php(+4 -4)📝
app/Filament/Resources/ServerResource/Pages/CreateServer.php(+3 -3)📝
app/Filament/Resources/ServerResource/Pages/EditServer.php(+3 -3)📝
app/Services/Servers/ServerConfigurationStructureService.php(+3 -3)📝
config/panel.php(+2 -0)📄 Description
Setting
PANEL_USE_BINARY_PREFIX=falsein the .env file will change all MiB/ GiB on the frontend to MB/ GB.The actual value will be saved as MB/ GB as well. This value will be converted to MiB/ GiB for wings, so no wings change needed. Example: creating a server with a memory limit of
2000 MBwill result in1907 MiBmemory limit for the container.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.