From 9b3fb2b2ac317b58faabec5cc2d251b1a11c0de7 Mon Sep 17 00:00:00 2001 From: SeriousBuggie <70026933+SeriousBuggie@users.noreply.github.com> Date: Sat, 22 Aug 2020 00:17:52 +0300 Subject: [PATCH] Better support count dir size for 32-bit systems --- classes/Size.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Size.php b/classes/Size.php index 4b7c21a..73e6339 100755 --- a/classes/Size.php +++ b/classes/Size.php @@ -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 } } -?> \ No newline at end of file +?>