Commit 8672f8f2 authored by Mathieu Valois's avatar Mathieu Valois
Browse files

pretty debugging

parent 1536bce2
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -13,7 +13,9 @@ set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
set(CMAKE_CXX_FLAGS "-pedantic -Wall -std=c++11 -Wextra")
set(CMAKE_LD_FLAGS "-lpthread")

add_executable(cppack src/core/statsgen.cpp src/cli/main.cpp)
add_executable(cppack
				src/core/statsgen.cpp
				src/cli/main.cpp)
target_link_libraries(cppack ${CMAKE_THREAD_LIBS_INIT})

# Création des exécutables.
+0 −1
Original line number Diff line number Diff line
@@ -305,5 +305,4 @@ void * generate_stats_thread(void * threadarg);
 */
void * generate_stats_thread_queue(void * threadarg);


#endif
+2 −2
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ int Statsgen::generate_stats() {


	if (!total_counter) {
		wcerr << "Empty file or not existing file" << endl;
		wcerr << "[ERROR] Empty file or not existing file" << endl;
		return 0;
	}

@@ -555,7 +555,7 @@ uint64_t nbline_file(const string & filename) {
	}
	// we have not read the whole file
	if (readfile.fail() && !readfile.eof()){
		cerr << "There was an error reading the file at line " << nb << endl;
		cerr << "[ERROR]" << " There was an error reading the file at line " << nb << endl;
		return 0;
	}