17 lines
482 B
Smarty
17 lines
482 B
Smarty
{**
|
|
* For the full copyright and license information, please view the
|
|
* docs/licenses/LICENSE.txt file that was distributed with this source code.
|
|
*}
|
|
{function name=peak_memory}
|
|
{$data = round($data / 1048576, 2)}
|
|
|
|
{if $data > 16}
|
|
<span class="danger">{$data|string_format:"%0.1f"}</span>
|
|
{elseif $data > 12}
|
|
<span class="warning">{$data|string_format:"%0.1f"}</span>
|
|
{else}
|
|
<span class="success">{$data|string_format:"%0.1f"}</span>
|
|
{/if}
|
|
Mb
|
|
{/function}
|