Skip to content

Commit

Permalink
#1469: lb: read node from file instead of using this_node
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 24, 2021
1 parent 4eebc6f commit 92127ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/vrt/collection/balance/stats_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ std::unique_ptr<nlohmann::json> StatsData::toJson(PhaseType phase) const {
auto etype = task["entity"]["type"];
vtAssertExpr(time.is_number());
vtAssertExpr(node.is_number());
vtAssertExpr(node == theContext()->getNode());
vtAssertExpr(node == this_node);

if (etype == "object") {
auto object = task["entity"]["id"];
Expand All @@ -192,7 +192,7 @@ std::unique_ptr<nlohmann::json> StatsData::toJson(PhaseType phase) const {
home = home_json;
}

auto elm = ElementIDStruct{object, home, this_node};
auto elm = ElementIDStruct{object, home, node};
sd->node_data_[id][elm] = time;

if (
Expand Down

0 comments on commit 92127ac

Please sign in to comment.