#set ($percentageUsed = $generalUtil.getPercentage($parameters.used, $parameters.total))
#set ($percentageFree = $generalUtil.subtract(100, $percentageUsed))

<table align=left border="0" cellpadding="0" cellspacing="0" class="memoryusagebar">
    <td width="90%">
        <table  border="0" cellpadding="0" cellspacing="0" width="100%">
            <td bgcolor="#CC3333" style="width: ${percentageUsed}%">
                <a title="Used Memory" >
                    <img src="$staticResourceUrlPrefix/images/border/spacer.gif"
                         height=15
                         width="100%"
                         border=0 title="$action.getText('used.memory.percent',[${percentageUsed}])">
                </a>
            </td>

            <td bgcolor="#00CC00" style="width: ${percentageFree}%">
                <a title="$action.getText('free.memory')" >
                    <img src="$staticResourceUrlPrefix/images/border/spacer.gif"
                         height=15
                         width="100%"
                         border=0 title="$action.getText('free.memory.percent', [${percentageFree}])">
                </a>
            </td>
        </table>
    </td>
    <td width="10%" align=left nowrap><strong>&nbsp;&nbsp;$action.getText("free.memory.text", [$percentageFree]) </strong></td>
</table>