mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 19:08:53 +03:00
[PR #1626] [MERGED] fix: Wrong conversion if decimal prefix selected #1494
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/1626
Author: @SaurFort
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/31/2025
Merged by: @Boy132
Base:
main← Head:fix-decimal-prefix📝 Commits (2)
41d21cdfix: Wrong conversion if decimal prefix selectedec82b8bChange binary multiplier📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
app/Filament/Server/Widgets/ServerOverview.php(+1 -1)📄 Description
When using the decimal prefix and setting 16 GB of RAM, the panel displayed 16.79 GB (without overhead) instead of 16 GB (without overhead).
This was due to the using of a binary multiplier (
2^20), which is only correct for MiB/GiB.So I've used the
config('panel.use_binary_prefix')to check what multiplier should be used.This is a visual fix, but I think it's better like that.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.