Skip to content

Commit

Permalink
Update sysid/src/main/native/cpp/analysis/FilteringUtils.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Johnson <johnson.peter@gmail.com>
  • Loading branch information
Gold856 and PeterJohnson authored Oct 12, 2024
1 parent 401089e commit 2549f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysid/src/main/native/cpp/analysis/FilteringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static units::second_t GetMaxStepTime(
auto& dataset = it.getValue();

if (IsRaw(key) && wpi::contains(key, "dynamic")) {
if (dataset.size() > 0) {
if (!dataset.empty()) {
auto duration = dataset.back().timestamp - dataset.front().timestamp;
if (duration > maxStepTime) {
maxStepTime = duration;
Expand Down

0 comments on commit 2549f3c

Please sign in to comment.