[PR #374] [MERGED] Add config variable to change between MiB and MB #720

Closed
opened 2026-02-04 18:45:41 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: config/mebibytes


📝 Commits (1)

  • 0e5ddee add 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=false in 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 MB will result in 1907 MiB memory limit for the container.


🔄 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/pelican-dev/panel/pull/374 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 6/11/2024 **Status:** ✅ Merged **Merged:** 6/13/2024 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `config/mebibytes` --- ### 📝 Commits (1) - [`0e5ddee`](https://github.com/pelican-dev/panel/commit/0e5ddee01f1631df687b6ecf89ea026dfac96707) add config variable for binary prefix ### 📊 Changes **7 files changed** (+21 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Setting `PANEL_USE_BINARY_PREFIX=false` in 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 MB` will result in `1907 MiB` memory limit for the container. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 18:45:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#720