mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
logger: restore buffer statistics update
- this was accidentally dropped during a rebase of #14050
This commit is contained in:
parent
e6d7612997
commit
2015cc2b39
@ -785,6 +785,13 @@ void Logger::run()
|
||||
_last_sync_time = loop_time;
|
||||
}
|
||||
|
||||
// update buffer statistics
|
||||
for (int i = 0; i < (int)LogType::Count; ++i) {
|
||||
if (!_statistics[i].dropout_start && (_writer.get_buffer_fill_count_file((LogType)i) > _statistics[i].high_water)) {
|
||||
_statistics[i].high_water = _writer.get_buffer_fill_count_file((LogType)i);
|
||||
}
|
||||
}
|
||||
|
||||
// publish logger status
|
||||
if (hrt_elapsed_time(&_logger_status_last) >= 1_s) {
|
||||
for (int i = 0; i < (int)LogType::Count; ++i) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user