cabana: bug fixes (#29902)

* fix freq

* fix chart legend alignment issue
This commit is contained in:
Dean Lee 2023-09-14 03:52:56 +08:00 committed by GitHub
parent 34f5cad4e7
commit 0bd9df3193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -289,6 +289,7 @@ void ChartsWidget::splitChart(ChartView *src_chart) {
}
src_chart->updateAxisY();
src_chart->updateTitle();
QTimer::singleShot(0, src_chart, &ChartView::resetChartCache);
}
}

View File

@ -30,7 +30,7 @@ struct CanData {
std::vector<std::array<uint32_t, 8>> bit_change_counts;
std::vector<int> last_delta;
std::vector<int> same_delta_counter;
double last_freq_update_ts = seconds_since_boot();
double last_freq_update_ts = 0;
};
struct CanEvent {