Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ooici/coi-services
Browse files Browse the repository at this point in the history
  • Loading branch information
newbrough committed Nov 14, 2012
2 parents a210b7a + 289ecc2 commit b0c5bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ion/services/sa/instrument/instrument_management_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,11 +1837,12 @@ def get_communications_status_roll_up(self, device_id):

#call eventsdb to check data-related events from this device.
now = str(int(time.time() * 1000))
query_interval = str(int(time.time() - 10 )*1000)
query_interval = str(int(time.time() - 3 )*1000)
# find_events compares timestamps are STRINGS!!!
events = self.clients.user_notification.find_events(origin=device_id, type= 'DeviceCommsEvent', max_datetime = now, min_datetime = query_interval)

for event in events:
log.debug("get_communications_status_roll_up: event %s", str(event))
if event.state == DeviceCommsType.DATA_DELIVERY_INTERRUPTION:
retval.value = StatusType.STATUS_WARNING

Expand Down

0 comments on commit b0c5bb2

Please sign in to comment.