current time detail..
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 21 Aug 2004 00:52:01 +0000 (00:52 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 21 Aug 2004 00:52:01 +0000 (00:52 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@822 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c

index 4e0c7d65ad06ccf1f84e780ae3f1b426e795f831..3adb5bc1684cfd7f2513d4dc2fa2c0dac8abb4c6 100644 (file)
@@ -2987,12 +2987,12 @@ gint update_current_time_hook(void *hook_data, void *call_data)
    * at one end of the trace. */
   
   
-  if(ltt_time_compare(current_time, time_begin) == -1)
+  if(ltt_time_compare(current_time, time_begin) < 0)
   {
     TimeWindow new_time_window;
 
     if(ltt_time_compare(current_time,
-          ltt_time_add(trace_start,half_width)) == -1)
+          ltt_time_add(trace_start,half_width)) < 0)
       time_begin = trace_start;
     else
       time_begin = ltt_time_sub(current_time,half_width);
@@ -3004,11 +3004,11 @@ gint update_current_time_hook(void *hook_data, void *call_data)
 
     lttvwindow_report_time_window(control_flow_data->tab, new_time_window);
   }
-  else if(ltt_time_compare(current_time, time_end) == 1)
+  else if(ltt_time_compare(current_time, time_end) > 0)
   {
     TimeWindow new_time_window;
 
-    if(ltt_time_compare(current_time, ltt_time_sub(trace_end, half_width)) == 1)
+    if(ltt_time_compare(current_time, ltt_time_sub(trace_end, half_width)) > 0)
       time_begin = ltt_time_sub(trace_end,width);
     else
       time_begin = ltt_time_sub(current_time,half_width);
This page took 0.026206 seconds and 4 git commands to generate.