Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Feb 6, 2024
1 parent 9229cac commit 1fd828b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/php/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1367,14 +1367,21 @@ public function convertMemory($capacity)
switch (strtolower($matches[3])) {
case 'pb':
$real_value *= 1024;
//no break, continue to next
case 'tb':
$real_value *= 1024;
//no break, continue to next
case 'gb':
$real_value *= 1024;
//no break, continue to next
case 'mb':
$real_value *= 1024;
//no break, continue to next
case 'kb':
$real_value *= 1024;
break;
default:
return null;
}

//then return as Mb.
Expand Down

0 comments on commit 1fd828b

Please sign in to comment.