mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Allow phpBytes to work with configs where gigabyte file sizes are allowed
This commit is contained in:
@@ -220,6 +220,13 @@ class Steam
|
||||
return intval($bytes);
|
||||
}
|
||||
|
||||
if (!(stripos($string, 'g') === false)) {
|
||||
// has a G in it, remove the G and multiply by (1024)^3.
|
||||
$bytes = bcmul(rtrim($string, 'gG'), '1073741824');
|
||||
|
||||
return intval($bytes);
|
||||
}
|
||||
|
||||
return intval($string);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user