From e84bf3dfe02099bb784b0b2299a6bd3333605128 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Sun, 15 Mar 2015 12:48:08 +0100 Subject: [PATCH] Bug in counter for server session: AnswerSentOnServerSessionOK instead of RequestSentOnServerSessionOK --- source/diameter.comm/ServerSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1