mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
firmware: although unlikely just patch this in then
This commit is contained in:
parent
234fa8ba95
commit
eb786c95e8
@ -137,6 +137,9 @@ class FirmwareController extends ApiControllerBase
|
||||
if (preg_match('/\s*(\d+)\s*([a-z])/i', $size, $matches)) {
|
||||
$factor = 1;
|
||||
switch (isset($matches[2]) ? strtolower($matches[2]) : 'b') {
|
||||
case 'p':
|
||||
$factor *= 1024;
|
||||
/* FALLTROUGH */
|
||||
case 't':
|
||||
$factor *= 1024;
|
||||
/* FALLTROUGH */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user