Partial fix for bug345440 - tmf.core.component
authorfrancois <fchouinard@gmail.com>
Sun, 26 Feb 2012 01:48:30 +0000 (20:48 -0500)
committerfrancois <fchouinard@gmail.com>
Sun, 26 Feb 2012 01:48:30 +0000 (20:48 -0500)
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/TmfEventProvider.java

index 16b6a63a474edde6e2255275ffdb09743385562f..f07e485dd4f1b9974945386c345764de36dbf5e6 100644 (file)
@@ -35,6 +35,7 @@ public abstract class TmfEventProvider<T extends TmfEvent> extends TmfDataProvid
         super();
     }
 
+    @Override
     public void init(String name, Class<T> eventType) {
         super.init(name, eventType);
     }
@@ -146,7 +147,7 @@ public abstract class TmfEventProvider<T extends TmfEvent> extends TmfDataProvid
                                                        e.printStackTrace();
                                                }
 
-                                               if (startIndex == 0 && nbRead[0] == CHUNK_SIZE[0]) { // do this only once if the event request index is unknown
+                                               if (startIndex == 0 && nbRead[0].equals(CHUNK_SIZE[0])) { // do this only once if the event request index is unknown
                                                        startIndex = subRequest.getIndex(); // update the start index with the index of the first subrequest's
                                                }                                       // start time event which was set during the arm request
                                                CHUNK_SIZE[0] = Math.min(request.getNbRequested() - nbRead[0], blockSize);
This page took 0.025577 seconds and 5 git commands to generate.