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.8 by tdb, Mon Jan 22 04:09:10 2001 UTC vs.
Revision 1.9 by tdb, Mon Jan 22 04:31:18 2001 UTC

# Line 4 | Line 4 | import java.util.*;
4   class DecodeCPU_TXT {
5  
6          XMLFormatter packet;
7        
8        public static final String VERSION = "statgrab.pl $Revision$";
7  
8          public DecodeCPU_TXT(){
9              HashMap data;
# Line 27 | Line 25 | class DecodeCPU_TXT {
25              }
26              catch (Exception e) {}
27              
30            String version = (String) data.get("version");
31            if(!version.equals(VERSION)) {
32                System.out.println("!!!!!! statgrab.pl has changed version, please check code is still up-to-date !!!!!!");
33            }
34            
28              String load1 = (String) data.get("packet.load.load1");
29                          String load5 = (String) data.get("packet.load.load5");
30                          String load15 = (String) data.get("packet.load.load15");
# Line 69 | Line 62 | class DecodeCPU_TXT {
62                  packet.addElement("platform",osplatform);
63                  packet.addElement("sysname",ossysname);
64                  packet.addElement("version",osversion);
65 +            packet.closeNest();
66                          packet.addNest("load");
67                                  packet.addElement("load1",load1);
68                                  packet.addElement("load5",load5);
# Line 94 | Line 88 | class DecodeCPU_TXT {
88                          packet.addNest("swap");
89                                  packet.addElement("inuse",swapInUse);
90                                  packet.addElement("free",swapFree);
91 +                    packet.closeNest();
92              packet.addNest("users");
93                  packet.addElement("count",usercount);
94 <                packet.addElement("list",userlist);
94 >                //packet.addElement("list",userlist);
95                          packet.closeNest();
96                          
97                          in.close();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines