Module: sems
Branch: master
Commit: 1e18873992f9aa8fbc834fa73dd241924944df4f
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=1e18873992f9aa8fbc834fa73dd241924944df4f

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Thu Nov 24 14:23:47 2011 +0100

sems-stats display real port number used

---

 core/plug-in/stats/query_stats.cxx |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/plug-in/stats/query_stats.cxx 
b/core/plug-in/stats/query_stats.cxx
index 8ee9a7f..5f37c13 100644
--- a/core/plug-in/stats/query_stats.cxx
+++ b/core/plug-in/stats/query_stats.cxx
@@ -116,13 +116,12 @@ int main(int argc, char** argv)
     return -1;
   }
 
-
   addr.sin_family = AF_INET;
   addr.sin_port = htons(addr.sin_port);
 
   msg_buf = cmd;    
-  printf("sending '%s\\n' to %s:%s\n", msg_buf.c_str(), 
-        server.c_str(), port.c_str());
+  printf("sending '%s\\n' to %s:%u\n", msg_buf.c_str(),
+        server.c_str(), addr.sin_port);
 
   msg_buf += "\n";
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to