Skip to content

Commit 473f238

Browse files
authored
fix(system_monitor): fix warning of containerOutOfBounds (#6927)
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 2f46b25 commit 473f238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/system_monitor/src/net_monitor/net_monitor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ void NetMonitor::monitor_traffic(diagnostic_updater::DiagnosticStatusWrapper & s
258258
if (line.empty()) continue;
259259

260260
boost::split(list, line, boost::is_any_of("\t"), boost::token_compress_on);
261-
if (list.size() >= 3) {
261+
if (list.size() > 3) {
262262
status.add(fmt::format("nethogs {}: program", index), list[3].c_str());
263263
status.add(fmt::format("nethogs {}: sent (KB/s)", index), list[1].c_str());
264264
status.add(fmt::format("nethogs {}: received (KB/sec)", index), list[2].c_str());

0 commit comments

Comments
 (0)