Skip to content

Commit b767d43

Browse files
committed
Switch from PACKET_TIMESECONDS to RECEIVED_TIMESECONDS
1 parent 23c2e29 commit b767d43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openc3/data/config/screen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ STALE_TIME:
2626
parameters:
2727
- name: value
2828
required: true
29-
description: Items from packets with PACKET_TIMESECONDS greater than this value in the past will be marked stale.
29+
description: Items from packets with RECEIVED_TIMESECONDS greater than this value in the past will be marked stale.
3030
The default is 30s. Recommend a minimum of 2s to avoid false positives due to race conditions.
3131
values: \d+
3232
GLOBAL_SETTING:

openc3/lib/openc3/models/cvt_model.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def self.get_tlm_values(items, stale_time: 30, scope: $openc3_scope)
111111
end
112112
# If we were able to find a value, try to get the limits state
113113
if item_result[0]
114-
if now - hash['PACKET_TIMESECONDS'] > stale_time
114+
if now - hash['RECEIVED_TIMESECONDS'] > stale_time
115115
item_result[1] = :STALE
116116
else
117117
# The last key is simply the name (RAW) so we can append __L

0 commit comments

Comments
 (0)