diff --git a/libnethogs.cpp b/libnethogs.cpp index 56049ca..05f3802 100644 --- a/libnethogs.cpp +++ b/libnethogs.cpp @@ -228,6 +228,10 @@ static void nethogsmonitor_threadproc() { packets_read = true; } + else + { + gettimeofday(&curtime, NULL); + } current_handle = current_handle->next; }