Skip to content

Commit 7a2b216

Browse files
committed
modify: delete is_active() method
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
1 parent 002849c commit 7a2b216

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

system/cgroup_setter/config/cgroup.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ base_path: "/sys/fs/cgroup"
22
settings:
33
- directory: "autoware/system_monitor"
44
search_word:
5+
- "__node:=system_monitor_container"

system/cgroup_setter/src/cgroup_setter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void CgroupSetter::checkCgroup(diagnostic_updater::DiagnosticStatusWrapper & sta
8484
}
8585
}
8686
if (allOK) {
87-
if (timer_->is_active()) timer->cancel();
87+
timer_->cancel();
8888
stat.summary(diagnostic_msgs::msg::DiagnosticStatus::OK, "All processes are added to cgroup.");
8989
} else {
9090
stat.summary(diagnostic_msgs::msg::DiagnosticStatus::WARN, "Some processes are not added to cgroup.");

0 commit comments

Comments
 (0)