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/CPU__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/CPU__Monitor.java (file contents):
Revision 1.9 by ajm, Fri Mar 2 03:57:06 2001 UTC vs.
Revision 1.10 by ajm, Fri Mar 2 03:59:25 2001 UTC

# Line 94 | Line 94 | public class CPU__Monitor implements PluginMonitor {
94   //---PRIVATE METHODS---
95  
96      private int checkAttribute(XMLPacket packet, String packetAttribute) {
97 <        for(int x= _levels.length; x > 0; x--) {
97 >        for(int x = _levels.length - 1; x >= 0; x--) {
98              if (_levels[x] != -1) {
99                  if(packet.getParam(packetAttribute) != null) {
100                      double attribute = Double.parseDouble(packet.getParam(packetAttribute));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines