Skip to content

Commit

Permalink
Issue #92 - Setting better default notif option values.
Browse files Browse the repository at this point in the history
  • Loading branch information
aywaldron committed Dec 4, 2018
1 parent 78abecd commit e79ade3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,8 @@ def telem_handler(session):
for k, v in tlm.getDefaultDict().iteritems():
packet_dict[v.uid] = v

notif_thrshld = ait.config.get('notifications.options.threshold')
if ait.config.get('notifications.options.frequency'):
notif_freq = ait.config.get('notifications.options.frequency')
else:
notif_freq = float('inf')
notif_thrshld = ait.config.get('notifications.options.threshold', 1)
notif_freq = ait.config.get('notifications.options.frequency', float('inf'))

log.info('Starting telemetry limit monitoring')
try:
Expand Down

0 comments on commit e79ade3

Please sign in to comment.