Skip to content

mode 6: sysstats (proto) hour/run duality (pure C)

James Browning requested to merge (removed):c-proto-stat-duality into master
  • rename structured variable stat_count to stat_count_recent
  • Create a structured variable stat_count_total
  • update stat_count_total on every event instead of stat_count_recent
  • hourly set count_stat_recent to the value of stat_count_total updating reset time for _recent
  • return member of stat_count_total - member of stat_count_recent for (old-style) this hours stats
  • create and optionally return _total variables containing stats since startup

split off from !1137 (closed)

tried using a macro to reduce line count/clutter and failed. (removed)

Edited by James Browning

Merge request reports

Loading