Commit bae18a50 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: Perform data fill in init function

Trigger data fill in init function to avoid getting "first read" values later.
Note: This "trick" may not work when cache update time is increased
significantly.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 7f1442cc
......@@ -52,4 +52,9 @@ void init_wrsSnmp(void)
init_wrsPstatsTable();
init_wrsPtpDataTable();
init_wrsPortStatusTable();
/* perform first reads, needed to calculate deltas later */
wrsTimingStatus_data_fill();
wrsNetworkingStatus_data_fill();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment