Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2023
1 parent 56be623 commit 5f0b93b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/autoware_bag_recorder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `autoware_bag_recorder` package does not produce any output topics.
Here are the core parameters that can be configured for the `autoware_bag_recorder` package:

| Name | Type | Default Value | Description |
| ---------------------------------- | ------ |---------------| --------------------------------------------------------------------- |
| ---------------------------------- | ------ | ------------- | --------------------------------------------------------------------- |
| `database_storage` | string | `"sqlite3"` | Choose between `"sqlite3"` or `"mcap"` for database storage options. |
| `maximum_record_time` | int | 1800 | Maximum duration (in seconds) for recording bag files. |
| `maximum_allowed_bag_storage_size` | int | 500.0 | Maximum allowed size (in GB) for storing bag files. |
Expand Down
5 changes: 3 additions & 2 deletions tools/autoware_bag_recorder/src/autoware_bag_recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,9 @@ void AutowareBagRecorderNode::check_disk_space()
disk_space_handler();
}

if (get_bag_path_directory_size(std::filesystem::u8path(bag_path_))
< maximum_allowed_bag_storage_size_) {
if (
get_bag_path_directory_size(std::filesystem::u8path(bag_path_)) <
maximum_allowed_bag_storage_size_) {
disk_space_handler();
}
}
Expand Down

0 comments on commit 5f0b93b

Please sign in to comment.