[Devel] [ openser-Bugs-1435350 ] fifo statistics module
SourceForge.net
noreply at sourceforge.net
Mon Feb 20 18:44:30 CET 2006
Bugs item #1435350, was opened at 2006-02-20 17:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1435350&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Submitted By: Norman Brandinger (goestelecom)
Assigned to: Nobody/Anonymous (nobody)
Summary: fifo statistics module
Initial Comment:
I found that the fifo get_statistics commands do not
appear to work as advertised. For example:
:get_statistics all:REPLY_FILE_NAME
Response: 500 command 'get_statistics all' not available
and
:get_statistics core:REPLY_FILE_NAME
Response: 500 command 'get_statistics core' not available
I also tried
:get_statistics:REPLY_FILE_NAME
core
Which also didn't produce any output.
Note that "get_statistics" did produce a complete
listing before the changes below were applied.
After making two minor changes in the statistics.c
program, I was able to produce the following output:
:get_statistics:REPLY_FILE_NAME
core
Response: 200 OK
Response: Module name = core; statistics=8
Response: core:rcv_requests = 95
Response: core:rcv_replies = 0
Response: core:fwd_requests = 0
Response: core:fwd_replies = 0
Response: core:drop_requests = 0
Response: core:drop_replies = 0
Response: core:err_requests = 0
Response: core:err_replies = 0
I made two changes in routine fifo_get_stats(), I
changed the followging section as shown below:
if ( buf[n-1]==':' ) {
/* whole argument is just statistic's name */
is_mod = 0;
} else {
/* arg is a module name */
buf[n]=0;
is_mod = 1;
}
I'm not positive of the original intent of this code
section so it is possible this change will cause some
undesirable behavior. I did test using just
"get_statistics" with nothing else and as expected, a
complete listing was produced.
Regards,
Norm
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1435350&group_id=139143
More information about the Devel
mailing list