From 872c4649fa03c83ef51eecd39dc45967c3c9bc35 Mon Sep 17 00:00:00 2001 From: Mohamed Boussaffa Date: Fri, 4 Mar 2016 23:06:26 +0800 Subject: [PATCH] Finally fixed --- libnethogs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libnethogs.cpp b/libnethogs.cpp index a44d941..17bc599 100644 --- a/libnethogs.cpp +++ b/libnethogs.cpp @@ -193,8 +193,7 @@ void NethogsMonitor::handleUpdate() if( monitor_udpate_callback ) { //notify update - NethogsAppUpdate &data = - monitor_update_data.insert(std::make_pair(pid, NethogsAppUpdate())).first->second; + NethogsAppUpdate &data = monitor_update_data[pid]; bool data_change = false;