ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/java/DecodeCPU_TXT.java
(Generate patch)

Comparing projects/cms/source/host/java/DecodeCPU_TXT.java (file contents):
Revision 1.5 by tdb, Wed Dec 13 19:00:37 2000 UTC vs.
Revision 1.7 by tdb, Thu Jan 18 17:55:55 2001 UTC

# Line 45 | Line 45 | class DecodeCPU_TXT {
45                          tok = new StringTokenizer(line," ",false);
46                          String totalProcesses = tok.nextToken(); // "632"
47                          //    System.out.println("totalProcesses: "+totalProcesses);
48 <                        tok.nextToken(); // processes
48 >                        tok.nextToken(":"); // processes:
49                          String sleeping = tok.nextToken(": ,"); // "591"        
50                          //    System.out.println("sleeping: "+sleeping);
51                          tok.nextToken(); // sleeping
# Line 119 | Line 119 | class DecodeCPU_TXT {
119                                  packet.addElement("swap",swap.trim());
120                          packet.closeNest();
121                          packet.addNest("memory");
122 <                                packet.addElement("real",real.substring(0, real.length()-1));
122 >                                packet.addElement("total",real.substring(0, real.length()-1));
123                                  packet.addElement("free",free.substring(0, free.length()-1));
124 <                                packet.addElement("swapinuse",swapInUse.substring(0, swapInUse.length()-1));
125 <                                packet.addElement("swapfree",swapFree.substring(0, swapFree.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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines