fix(dashboard): change human_size param from int to float to match disk_free_space return type

This commit is contained in:
Forkless
2026-05-12 01:06:49 +02:00
parent 257befe9a7
commit 8e6582dd33
+2 -2
View File
@@ -251,8 +251,8 @@ class Dashboard {
* @param int $bytes Raw byte count.
* @return string e.g. "24.5 MB"
*/
private function human_size( int $bytes ): string {
if ( 0 === $bytes ) {
private function human_size( float $bytes ): string {
if ( $bytes <= 0.0 ) {
return '0 B';
}