Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 24, 2024
1 parent 4ae1b85 commit 020922b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ class MemMonitor : public rclcpp::Node

char hostname_[HOST_NAME_MAX + 1]; //!< @brief host name

size_t available_size_; //!< @brief Memory available size to generate error
int usage_timeout_; //!< @brief Timeout duration for executing readUsage
int ecc_timeout_; //!< @brief Timeout duration for executing edac-util command
float swap_usage_warn_; //!< @brief Swap usage(%) to generate warning
float swap_usage_error_; //!< @brief Swap usage(%) to generate error
size_t available_size_; //!< @brief Memory available size to generate error
int usage_timeout_; //!< @brief Timeout duration for executing readUsage
int ecc_timeout_; //!< @brief Timeout duration for executing edac-util command
float swap_usage_warn_; //!< @brief Swap usage(%) to generate warning
float swap_usage_error_; //!< @brief Swap usage(%) to generate error

rclcpp::TimerBase::SharedPtr
timer_; //!< @brief Timer to execute readUsage and edac-utils command
Expand Down
5 changes: 1 addition & 4 deletions system/system_monitor/src/mem_monitor/mem_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ MemMonitor::MemMonitor(const rclcpp::NodeOptions & options)
}
}

void MemMonitor::update()
{
updater_.force_update();
}
void MemMonitor::update() { updater_.force_update(); }

void MemMonitor::checkUsage(diagnostic_updater::DiagnosticStatusWrapper & stat)
{
Expand Down

0 comments on commit 020922b

Please sign in to comment.