From 76e782383c92c78e50c6e52578869a32d3021b87 Mon Sep 17 00:00:00 2001 From: hm Date: Tue, 14 Jun 2016 22:38:24 +0200 Subject: [PATCH] error in option evaluation --- Server/cpidjinn.cpp | 4 ++-- util/timer.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/cpidjinn.cpp b/Server/cpidjinn.cpp index 380355e..f37013c 100644 --- a/Server/cpidjinn.cpp +++ b/Server/cpidjinn.cpp @@ -39,9 +39,9 @@ int main(int argc, char** argv){ while(argc > 1 && argv[1][0] == '-'){ char* arg = argv[1]; - if (strcmp(arg, "-s") == 0 || strcmp(arg, "--simulation")){ + if (strcmp(arg, "-s") == 0 || strcmp(arg, "--simulation") == 0){ simulation = true; - } else if (strcmp(arg, "-t") == 0 || strcmp(arg, "--test")){ + } else if (strcmp(arg, "-t") == 0 || strcmp(arg, "--test") == 0){ test(argc - 2, argv + 2, &logger); } else { logger.sayf(LOG_ERROR, "unknown option: %s", arg); diff --git a/util/timer.cpp b/util/timer.cpp index 5b2b039..4ff3faf 100644 --- a/util/timer.cpp +++ b/util/timer.cpp @@ -1,5 +1,5 @@ #include "util.hpp" -#define TRACE_ON +//#define TRACE_ON #include "trace.hpp" /** * Constructor. -- 2.39.5