From: Eduardo Ramos Testillano Date: Sun, 15 Mar 2015 11:48:08 +0000 (+0100) Subject: Bug in counter for server session: AnswerSentOnServerSessionOK instead of RequestSent... X-Git-Tag: REFACTORING_TESTING_LIBRARY~228 X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=commitdiff_plain;h=e84bf3dfe02099bb784b0b2299a6bd3333605128 Bug in counter for server session: AnswerSentOnServerSessionOK instead of RequestSentOnServerSessionOK --- diff --git a/source/diameter.comm/ServerSession.cpp b/source/diameter.comm/ServerSession.cpp index ba40dff..ce4f3ce 100644 --- a/source/diameter.comm/ServerSession.cpp +++ b/source/diameter.comm/ServerSession.cpp @@ -724,7 +724,7 @@ void ServerSession::countSendings(const diameter::CommandId & cid, bool ok)throw if(ok) { // Main counters: oamModule.count(isRequest ? OamModule::Counter::RequestSentOK : OamModule::Counter::AnswerSentOK); - oamModule.count(isRequest ? OamModule::Counter::RequestSentOnServerSessionOK : OamModule::Counter::RequestSentOnServerSessionOK); + oamModule.count(isRequest ? OamModule::Counter::RequestSentOnServerSessionOK : OamModule::Counter::AnswerSentOnServerSessionOK); if(cid == helpers::base::COMMANDID__Capabilities_Exchange_Answer) oamModule.count(OamModule::Counter::CEASentOK); else if(cid == helpers::base::COMMANDID__Device_Watchdog_Answer) oamModule.count(OamModule::Counter::DWASentOK);