ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Disk__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Disk__Monitor.java (file contents):
Revision 1.22 by tdb, Sun Aug 1 10:40:45 2004 UTC vs.
Revision 1.23 by tdb, Thu Feb 10 17:36:00 2005 UTC

# Line 135 | Line 135 | public class Disk__Monitor extends MonitorSkeleton {
135  
136                      // get the packet data
137                      double diskTotal, diskAvail;
138 <                    int diskInodeTotal, diskInodeAvail;
138 >                    long diskInodeTotal, diskInodeAvail;
139                      try {
140  
141                          if(total==null || avail==null || totalInodes==null || availInodes==null) {
# Line 143 | Line 143 | public class Disk__Monitor extends MonitorSkeleton {
143                          }
144                          diskTotal = Double.parseDouble(total);
145                          diskAvail = Double.parseDouble(avail);
146 <                        diskInodeTotal = Integer.parseInt(totalInodes);
147 <                        diskInodeAvail = Integer.parseInt(availInodes);
146 >                        diskInodeTotal = Long.parseLong(totalInodes);
147 >                        diskInodeAvail = Long.parseLong(availInodes);
148                      } catch (NumberFormatException e) {
149                          _logger.write(this.toString(), Logger.WARNING, "Received packet from "+source+" with bad disk information: "+e);
150                          // don't try to continue and process, try next disk

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines