Skip to content

Commit

Permalink
bah.. braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Sep 13, 2012
1 parent 0a5c036 commit 94126fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.de.php
Expand Up @@ -405,13 +405,13 @@ function outputFeedContent()
*/
function byteConvert(&$bytes)
{
$b = int $bytes;
$b = (int) $bytes;
$s = array('B', 'kB', 'MB', 'GB', 'TB');
if($b < 0) {
return "0 " . $s[0];
}
$con = 1024;
$e = int (log($b, $con));
$e = (int) (log($b, $con));
return number_format($b / pow($con, $e), 2, ',', '.') . ' ' . $s[$e];
}

Expand Down
4 changes: 2 additions & 2 deletions index.en.php
Expand Up @@ -389,13 +389,13 @@ function outputFeedContent()
*/
function byteConvert(&$bytes)
{
$b = int $bytes;
$b = (int) $bytes;
$s = array('B', 'kB', 'MB', 'GB', 'TB');
if($b < 0) {
return "0 " . $s[0];
}
$con = 1024;
$e = int (log($b, $con));
$e = (int) (log($b, $con));
return number_format($b / pow($con, $e), 2, ',', '.') . ' ' . $s[$e];
}

Expand Down

0 comments on commit 94126fc

Please sign in to comment.