From: hm Date: Tue, 14 Jun 2016 20:38:24 +0000 (+0200) Subject: error in option evaluation X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=76e782383c92c78e50c6e52578869a32d3021b87;p=cpidjinn error in option evaluation --- 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.