mirror of
https://github.com/forkless/Piperless.git
synced 2026-08-16 08:56:38 +02:00
fix(dashboard): change human_size param from int to float to match disk_free_space return type
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user