X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttv%2Flttv%2Ftraceset-process.c;h=ef9d80a8a5c310cdc50cdaa8b08e9d8c5dfc44d7;hb=b9ce0bad7daf7c0a2333c91fdb1e35d602afe17f;hp=5f6df65257a612ca7cc97f99515b0a7a76097cc0;hpb=0fa52e61230105af7ad9382e859d03203a09b500;p=lttv.git diff --git a/lttv/lttv/traceset-process.c b/lttv/lttv/traceset-process.c index 5f6df652..ef9d80a8 100644 --- a/lttv/lttv/traceset-process.c +++ b/lttv/lttv/traceset-process.c @@ -13,8 +13,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include @@ -60,13 +60,13 @@ guint lttv_process_traceset_middle(LttvTraceset *traceset, { unsigned count = 0; gint last_ret = 0; - LttvTracesetPosition *currentPos; struct bt_ctf_event *bt_event; LttvEvent event; LttTime endPositionTime; + //TODO ybrosseau 2013-10-17: Compare with end_position directly when its possible if(end_position) { endPositionTime = lttv_traceset_position_get_time(end_position); } @@ -82,14 +82,7 @@ guint lttv_process_traceset_middle(LttvTraceset *traceset, if(ltt_time_compare(end, time) <= 0) { break; } - /* - currentPos = lttv_traceset_create_current_position(traceset); - if(lttv_traceset_position_compare(currentPos,end_position ) == 0){ - lttv_traceset_destroy_position(currentPos); - break; - } - lttv_traceset_destroy_position(currentPos); - */ + //TODO ybrosseau 2013-10-17: Compare with end_position directly when its possible if(end_position && (ltt_time_compare(endPositionTime, time) <= 0)) { break; }