mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 19:31:01 -06:00
Allow phpBytes to work with configs where gigabyte file sizes are allowed
This commit is contained in:
parent
f065f3a0b8
commit
51570a5d08
@ -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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user