diff --git a/plugin/cpp/networkplugin.cpp b/plugin/cpp/networkplugin.cpp index 4c26515af81b5c16d8a68470e6d877ce603a1620..94fc82c0f847e431d6554d38f4ac2da2be952709 100644 --- a/plugin/cpp/networkplugin.cpp +++ b/plugin/cpp/networkplugin.cpp @@ -605,12 +605,11 @@ void NetworkPlugin::sendMemoryUsage() { stats.set_res(res + e_res); stats.set_shared(shared + e_shared); + stats.set_id(stringOf(getpid())); std::string message; stats.SerializeToString(&message); - stats.set_id(stringOf(getpid())); - WRAP(message, pbnetwork::WrapperMessage_Type_TYPE_STATS); send(message);