Bug in counter for server session: AnswerSentOnServerSessionOK instead of RequestSent...
authorEduardo Ramos Testillano <eduardo.ramos.testillano@gmail.com>
Sun, 15 Mar 2015 11:48:08 +0000 (12:48 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@gmail.com>
Sun, 15 Mar 2015 11:48:08 +0000 (12:48 +0100)
source/diameter.comm/ServerSession.cpp

index ba40dff..ce4f3ce 100644 (file)
@@ -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);