Procházet zdrojové kódy

Fixed boundary condition

Raymond Edah před 7 roky
rodič
revize
c8e5e00f7d

+ 1 - 1
src/main/java/nu/ltd/fp/se/collector/MeminfoCollector.java

@@ -73,7 +73,7 @@ public class MeminfoCollector extends AbstractMetricCollector implements MetricC
       // Skip the 1st 3 lines in the meminfo file
       while ((line = reader.readLine()) != null) {
         System.out.println("DEBUG: line=" + line);
-        if (i >= 2) {
+        if (i > 2) {
           String[] tokens = line.split(" ");
           System.out.println("DEBUG: tokens=" + tokens);
           String[] fieldNameTokens = tokens[0].split(":");