Skip to content

Commit

Permalink
Fixed some stuff from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dparo committed Jun 16, 2022
1 parent 2dbf112 commit 1580e15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tools/perfprof/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extern "C" {
#define INFEASIBLE_SOLUTION_DEFAULT_COST_VAL ((double)1.0)
/// Default cost value attributed to a crashed solver, or a solver
/// which cannot produce any cost within the resource limits.
#define CRASHED_SOLVER_DEFAULT_COST_VAL ((double)10.0)
#define CRASHED_SOLVER_DEFAULT_COST_VAL ((double)2.0)

#define CPTP_EXE "./build/Release/src/cptp"
#define PYTHON3_PERF_SCRIPT "./src/tools/perfprof/plot.py"
Expand Down
6 changes: 3 additions & 3 deletions src/tools/perfprof/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,12 @@ static void verify_batches_consistency(const PerfProfBatch *batches,
//
for (int32_t i = 0; i < num_batches; i++) {

if (strchar(batches[i].name, ' ')) {
if (strchr(batches[i].name, ' ')) {
log_fatal("Avoid spaces inside batch names. Found batch name: `%s`",
batches[i].name);
abort();
} else if (strchar(batches[i].name, '\\')) {
log_fatal("Avoid backslash `\` inside batch names. Found batch "
} else if (strchr(batches[i].name, '\\')) {
log_fatal("Avoid backslash `\\` inside batch names. Found batch "
"name: `%s`",
batches[i].name);
abort();
Expand Down

0 comments on commit 1580e15

Please sign in to comment.