Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
W
White Rabbit Trigger Distribution
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Wiki
    • Wiki
  • image/svg+xml
    Discourse
    • Discourse
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Projects
  • White Rabbit Trigger Distribution
  • Issues
  • #9

Closed
Open
Opened May 03, 2021 by Dimitris Lampridis@dlampridis
  • Report abuse
  • New issue
Report abuse New issue

wrtd lib wrtd_set_attr_tstamp() should make sure that the ns field is not more than 1e9

Documentation says that wrtd_tstamp field for nanoseconds wraps at 1e9: https://wrtd.readthedocs.io/en/latest/usage_clib.html#_CPPv411wrtd_tstamp

In WRTD lib, the wrtd_set_attr_tstamp() should check the provided tstamp and if the ns field is greater than (1e-9)-1, it should increase the seconds field and decrease the ns field, until the structure is compliant.

Assignee
Assign to
v1.0.1
Milestone
v1.0.1
Assign milestone
Time tracking
None
Due date
No due date
1
Labels
enhancement
Assign labels
  • View project labels
Reference: project/wrtd#9