119 |
|
packet.addElement("swap",swap.trim()); |
120 |
|
packet.closeNest(); |
121 |
|
packet.addNest("memory"); |
122 |
< |
packet.addElement("real",real); |
123 |
< |
packet.addElement("free",free); |
124 |
< |
packet.addElement("swapinuse",swapInUse); |
125 |
< |
packet.addElement("swapfree",swapFree); |
122 |
> |
packet.addElement("total",real.substring(0, real.length()-1)); |
123 |
> |
packet.addElement("free",free.substring(0, free.length()-1)); |
124 |
> |
packet.closeNest(); |
125 |
> |
packet.addNest("swap"); |
126 |
> |
packet.addElement("inuse",swapInUse.substring(0, swapInUse.length()-1)); |
127 |
> |
packet.addElement("free",swapFree.substring(0, swapFree.length()-1)); |
128 |
|
packet.closeNest(); |
129 |
|
|
130 |
|
in.close(); |
143 |
|
} |
144 |
|
|
145 |
|
|
146 |
< |
} // class |
146 |
> |
} // class |