rxbag: reduced index update frequency

This commit is contained in:
Tim Field 2010-06-04 21:29:34 +00:00
parent 9f05f30d25
commit 9397643698
2 changed files with 7 additions and 7 deletions

View File

@ -101,8 +101,8 @@ class RxBagApp(wx.App):
except Exception, ex:
print >> sys.stderr, 'Error initializing application:', ex
import traceback
traceback.print_exc()
#import traceback
#traceback.print_exc()
return False
return True

View File

@ -1784,17 +1784,17 @@ class IndexCacheThread(threading.Thread):
# Update the index for one topic
updated = False
for topic in self.timeline.topics:
if topic in self.timeline.invalidated_caches and topic != last_updated_topic:
if topic in self.timeline.invalidated_caches:# and topic != last_updated_topic:
updated = (self.timeline._update_index_cache(topic) > 0)
if updated:
last_updated_topic = topic
break
#if updated:
# last_updated_topic = topic
# break
if updated:
wx.CallAfter(self.timeline.Refresh)
# Give the GUI some time to update
time.sleep(0.2)
time.sleep(1.0)
def stop(self):
self._stop_flag = True