# | Line 140 | Line 140 | public class Memory__Monitor extends MonitorSkeleton { | |
---|---|---|
140 | type = "%"; | |
141 | } | |
142 | ||
143 | < | // format the memoryInUse to a String |
143 | > | // format the value to a String |
144 | NumberFormat nf = NumberFormat.getInstance(); | |
145 | nf.setMaximumFractionDigits(2); | |
146 | nf.setMinimumFractionDigits(2); | |
147 | String strCurValue = nf.format(curValue); | |
148 | ||
149 | // set the attributeName nicely | |
150 | < | String attributeName = type + " Memory in use"; |
150 | > | String attributeName = type + " Memory in use " + type; |
151 | if(useCache) { | |
152 | attributeName += " (ex. cache)"; | |
153 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |