Skip to content

Commit

Permalink
Merge branch 'restore-bug' of github.com:XiaoMi/pegasus into restore-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoliwei committed Apr 14, 2020
2 parents 37b5424 + e8b71b5 commit 9b73b22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shell/command_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,11 @@ inline bool get_app_partition_stat(shell_context *sc,
update_app_pegasus_perf_counter(row, counter_name, m.value);
}
} else if (parse_app_perf_counter_name(m.name, app_name, counter_name)) {
// if the app_name from perf-counter isn't existed(maybe the app was dropped), it
// will be ignored.
if (app_name_id.find(app_name) == app_name_id.end()) {
continue;
}
// perf-counter value will be set into partition index 0.
row_data &row = rows[app_name][0];
row.app_id = app_name_id[app_name];
Expand Down

0 comments on commit 9b73b22

Please sign in to comment.