Skip to content

Comments

DOCS-4691: Fix incorrect threshold in get_robot_part sample code#1097

Merged
lia-viam merged 1 commit intoviamrobotics:mainfrom
lia-viam:last-access-sample-code
Feb 20, 2026
Merged

DOCS-4691: Fix incorrect threshold in get_robot_part sample code#1097
lia-viam merged 1 commit intoviamrobotics:mainfrom
lia-viam:last-access-sample-code

Conversation

@lia-viam
Copy link
Contributor

The comment said "less than 10 sec ago" but the comparison used 10000 (milliseconds) instead of 10 (seconds). Since time.time() and .timestamp() both return values in seconds, the threshold should be 10.

The comment said "less than 10 sec ago" but the comparison used 10000
(milliseconds) instead of 10 (seconds). Since time.time() and
.timestamp() both return values in seconds, the threshold should be 10.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lia-viam lia-viam requested a review from a team as a code owner February 19, 2026 20:27
@lia-viam lia-viam requested review from njooma and stuqdog February 19, 2026 20:27
@lia-viam lia-viam merged commit 0cf7fa7 into viamrobotics:main Feb 20, 2026
13 checks passed
@lia-viam lia-viam deleted the last-access-sample-code branch February 20, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants