Skip to content

Commit

Permalink
fix the logic of enforce_max_duration
Browse files Browse the repository at this point in the history
  • Loading branch information
freedomtan committed Feb 14, 2024
1 parent 05a9cec commit ab284da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loadgen/results.cc
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ void PerformanceSummary::LogSummary(AsyncSummary& summary) {

bool all_constraints_met = min_duration_met &&
perf_constraints_met && early_stopping_met;
if (settings.enforce_max_duration){
if (!settings.enforce_max_duration){
all_constraints_met = all_constraints_met && min_queries_met;
}
summary("Result is : ", all_constraints_met ? "VALID" : "INVALID");
Expand All @@ -485,7 +485,7 @@ void PerformanceSummary::LogSummary(AsyncSummary& summary) {
perf_constraints_met ? "Yes" : "NO");
}
summary(" Min duration satisfied : ", min_duration_met ? "Yes" : "NO");
summary(" Min queries satisfied : ", min_queries_met ? "Yes" : settings.enforce_max_duration? "NO" : "Skipped");
summary(" Min queries satisfied : ", min_queries_met ? "Yes" : settings.enforce_max_duration ? "Skipped" : "NO");
summary(" Early stopping satisfied: ", early_stopping_met ? "Yes" : "NO");

if (!all_constraints_met) {
Expand Down

0 comments on commit ab284da

Please sign in to comment.