From 0cc82d8dfb756206313f6ebdf6843d328112f8e0 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Tue, 2 Oct 2007 07:36:16 +0000 Subject: [PATCH] * Changed query_stats default port t0 5040 (same as stats server listening default). * Small documentation fixes. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@483 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/stats/README | 5 +++-- core/plug-in/stats/query_stats.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/plug-in/stats/README b/core/plug-in/stats/README index e7fec3a4..96be5a32 100644 --- a/core/plug-in/stats/README +++ b/core/plug-in/stats/README @@ -12,8 +12,9 @@ of active calls is available. Using sample program: 1. compile query_stats.c with: - gcc -o query_stats query_stats.c + g++ -o query_stats query_stats.c 2. use: - ./query_stats m.y.i.p port + ./query_stats -s m.y.i.p -p port + diff --git a/core/plug-in/stats/query_stats.c b/core/plug-in/stats/query_stats.c index f595ad75..8c3482a9 100644 --- a/core/plug-in/stats/query_stats.c +++ b/core/plug-in/stats/query_stats.c @@ -21,7 +21,7 @@ void print_usage(const char * progname) "\n" "where : \n" " -s : server name|ip (default: 127.0.0.1)\n" - " -p : server port (default: 50040)\n" + " -p : server port (default: 5040)\n" " -c : command (default: calls)\n" "\n" "Tips: \n" @@ -81,7 +81,7 @@ int main(int argc, char** argv) } string server="127.0.0.1"; - string port="50040"; + string port="5040"; string cmd="calls"; for(map::iterator it = args.begin();