No newline at end of file #0
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@106 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -191,7 +191,7 @@ class Format
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Байты в мегабайты
|
||||
* @param int $bytes
|
||||
@ -202,7 +202,7 @@ class Format
|
||||
$mb = number_format((int) $bytes / 1024 / 1024, 2, '.', '');
|
||||
return preg_replace("/(\.?)0+$/", "", $mb) . 'МБ';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Байты в килобайты
|
||||
* @param int $bytes
|
||||
@ -219,4 +219,4 @@ class Format
|
||||
* Оффсет с учетом летнего/зимнего времени
|
||||
*/
|
||||
Format::setTimezoneOffset(date('Z') - ((date('I') ? 60*60 : 0 )));
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user