Skip to content

Commit

Permalink
fix regression of reseting crit path index selection on new path list…
Browse files Browse the repository at this point in the history
… request
  • Loading branch information
w0lek committed Dec 1, 2023
1 parent c0fa676 commit afa5bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vpr/src/server/taskresolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ void TaskResolver::update(ezgl::application* app)
std::string detailsLevel = options.getString(OPTION_DETAILS_LEVEL);
bool isFlat = options.getBool(OPTION_IS_FLOAT_ROUTING, false);
if (!options.hasErrors()) {
calcCritPath(nCriticalPathNum, typePath);
std::string msg = getPathsStr(g_vpr_ctx.crit_paths, detailsLevel, isFlat);
if (typePath != g_vpr_ctx.path_type) {
g_vpr_ctx.crit_path_index = -1;
}
calcCritPath(nCriticalPathNum, typePath);
std::string msg = getPathsStr(g_vpr_ctx.crit_paths, detailsLevel, isFlat);
g_vpr_ctx.path_type = typePath; // duplicated
task.success(msg);
} else {
Expand Down

0 comments on commit afa5bc1

Please sign in to comment.