{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=memory}
{$data = round($data / 1048576, 2)}
{if $data > 3}
{$data|string_format:"%0.2f"}
{elseif $data > 1}
{$data|string_format:"%0.2f"}
{elseif round($data, 2) > 0}
{$data|string_format:"%0.2f"}
{else}
-
{/if}
Mb
{/function}