mirror of
https://github.com/Dark1-dev/AutoIndex-Php8.git
synced 2026-02-23 07:01:03 +01:00
Better support count dir size for 32-bit systems
This commit is contained in:
@@ -91,7 +91,7 @@ class Size
|
||||
*/
|
||||
public function __construct($bytes)
|
||||
{
|
||||
$this -> bytes = ((is_bool($bytes)) ? $bytes : max((int)$bytes, 0));
|
||||
$this -> bytes = ((is_bool($bytes)) ? $bytes : max((double)$bytes, 0));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -109,4 +109,4 @@ class Size
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user