Skip to content

Commit

Permalink
also support Caps on size format (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Nov 16, 2021
1 parent 815f896 commit f29922d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Actions/Diagnostics/Checks/IniSettingsCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ private function convert_size(string $size): int
$size = intval($size);

switch ($last) {
case 'G':
case 'g':
$size *= 1024;
// no break
case 'M':
case 'm':
$size *= 1024;
// no break
case 'K':
case 'k':
$size *= 1024;
}
Expand Down

0 comments on commit f29922d

Please sign in to comment.