wlmaker
Loading...
Searching...
No Matches
netgraph_state_t Struct Reference
Collaboration diagram for netgraph_state_t:

Public Attributes

FILE * proc_fp
unsigned long long prev_rx_bytes
unsigned long long prev_tx_bytes
unsigned long long peak_rate
size_t scale_index
rate_history_t history [WLM_GRAPH_REGENERATE_HISTORY_MAX]
uint32_t history_index
uint32_t history_num

Detailed Description

State for the network graph (mutable runtime data).

Member Data Documentation

◆ history

Raw rate history for regeneration (ring buffer, newest first).

◆ history_index

uint32_t netgraph_state_t::history_index

Current write position in history (next slot to write).

◆ history_num

uint32_t netgraph_state_t::history_num

Number of valid entries in history.

◆ peak_rate

unsigned long long netgraph_state_t::peak_rate

Peak observed rate (for auto-scaling).

◆ prev_rx_bytes

unsigned long long netgraph_state_t::prev_rx_bytes

Previous absolute RX byte count for computing rate.

◆ prev_tx_bytes

unsigned long long netgraph_state_t::prev_tx_bytes

Previous absolute TX byte count for computing rate.

◆ proc_fp

FILE* netgraph_state_t::proc_fp

Open file handle to /proc/net/dev.

◆ scale_index

size_t netgraph_state_t::scale_index

Index into _scales for current display scale.


The documentation for this struct was generated from the following file: