fix
This commit is contained in:
parent
2fa85155fc
commit
342bbfae7c
5
build.sh
5
build.sh
@ -3,7 +3,8 @@
|
||||
ENGINE=ULOG2
|
||||
#ENGINE=PCAP
|
||||
|
||||
LIBS=""
|
||||
# we use C++ 11 threads. We must include pthread library due gcc bug
|
||||
LIBS="-l pthread"
|
||||
|
||||
if [ "PCAP" == $ENGINE ]; then
|
||||
LIBS="$LIBS -lpcap"
|
||||
@ -21,4 +22,4 @@ fi
|
||||
|
||||
g++ libipulog.c -c -o libipulog.o -Wno-write-strings
|
||||
# -std=c++11
|
||||
g++ -DREDIS -D$ENGINE fastnetmon.cpp libipulog.o $LIBS -o fastnetmon -g
|
||||
g++ -DREDIS -D$ENGINE fastnetmon.cpp libipulog.o $LIBS -o fastnetmon -std=c++11 -lpthread -g
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include <utility>
|
||||
#include <sstream>
|
||||
|
||||
//#include <thread>
|
||||
#include <thread>
|
||||
|
||||
// #include <boost/thread.hpp> - выливается в падение компилятора
|
||||
// for boost split
|
||||
@ -647,6 +647,8 @@ void calculation_programm() {
|
||||
time_t current_time;
|
||||
time(¤t_time);
|
||||
|
||||
//sleep(5);
|
||||
|
||||
// вынести в поток!!!
|
||||
if ( difftime(current_time, start_time) >= check_period ) {
|
||||
// clean up screen
|
||||
|
Loading…
Reference in New Issue
Block a user