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) { |
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 |