Skip to content

Commit

Permalink
fix(system_monitor): fix warning of containerOutOfBounds (#6927)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored May 9, 2024
1 parent 2f46b25 commit 473f238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/system_monitor/src/net_monitor/net_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void NetMonitor::monitor_traffic(diagnostic_updater::DiagnosticStatusWrapper & s
if (line.empty()) continue;

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

0 comments on commit 473f238

Please sign in to comment.