From dd99cf85503901a5cc1de9f898892d0fd56cc330 Mon Sep 17 00:00:00 2001 From: Mohamed Boussaffa Date: Sun, 6 Mar 2016 20:59:24 +0800 Subject: [PATCH] small bug fix --- libnethogs.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; }