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 10
    • Issues 10
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Schedules
    • Charts
  • 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
  • #10

Closed
Open
Opened Jul 07, 2021 by Dimitris Lampridis@dlampridis
  • Report abuse
  • New issue
Report abuse New issue

Rule statistics are only refreshed once when the node is initialised

Rule statistics are different from rule configuration because the hardware (MockTurtle software actually) can change them at any time.

Currently, both the config and the stats of the rules are updated once when the device starts. This is fine for the wrtd-tool which does "init"->"operation"->"close", but it is not for any application running longer.

As discussed with Tristan, the correct thing to do is to fetch fresh statistics from the MockTurtle anytime one of the wrtd_attr_get_stat_rule_* functions is called. Additionally, it would be nice if a) we skip the statistics when reading the rule config and b) we maintain the statistics (by reading them first) before rewriting the rules back to the MockTurtle memory.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
2
Labels
bug todo
Assign labels
  • View project labels
Reference: project/wrtd#10