Module: kamailio
Branch: master
Commit: 24e09eeafc489b2d37c759ccedc0cdb65ebe2613
URL:
https://github.com/kamailio/kamailio/commit/24e09eeafc489b2d37c759ccedc0cdb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-18T08:53:33+02:00
statsc: small updates to docs
---
Modified: src/modules/statsc/doc/statsc_admin.xml
Modified: src/modules/statsc/statsc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/24e09eeafc489b2d37c759ccedc0cdb…
Patch:
https://github.com/kamailio/kamailio/commit/24e09eeafc489b2d37c759ccedc0cdb…
---
diff --git a/src/modules/statsc/doc/statsc_admin.xml
b/src/modules/statsc/doc/statsc_admin.xml
index 1ba4ec8202..5b6cf50b10 100644
--- a/src/modules/statsc/doc/statsc_admin.xml
+++ b/src/modules/statsc/doc/statsc_admin.xml
@@ -29,14 +29,14 @@
<title>&kamailio; Modules</title>
<para>
The following modules must be loaded along this module:
- <itemizedlist>
- <listitem>
- <para>
- <emphasis>various</emphasis> - for getting access
- to the statistics exported by these modules.
- </para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>various</emphasis> - (optional, e.g., sl, tm, usrloc)
+ for getting access to the statistics exported by these modules.
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
</section>
<section>
@@ -60,7 +60,7 @@
<section id="statsc.p.interval">
<title><varname>interval</varname> (int)</title>
<para>
- Timer interval when to record the value for statistics.
+ Timer interval when to record the value for statistics.
</para>
<para>
<emphasis>
@@ -79,7 +79,7 @@ modparam("statsc", "interval", 300)
<section id="statsc.p.items">
<title><varname>items</varname> (int)</title>
<para>
- How many items to store for each statistic.
+ How many items to store for each statistic.
</para>
<para>
<emphasis>
diff --git a/src/modules/statsc/statsc_mod.c b/src/modules/statsc/statsc_mod.c
index 77c112b901..e05109df36 100644
--- a/src/modules/statsc/statsc_mod.c
+++ b/src/modules/statsc/statsc_mod.c
@@ -351,7 +351,7 @@ static void statsc_rpc_report(rpc_t* rpc, void* ctx)
rpc->fault(ctx, 500, "Missing command parameter");
return;
}
-
+
if(cname.len==4 && strncmp(cname.s, "list", 4)==0) {
cmode = 1;
} else if(cname.len==4 && strncmp(cname.s, "diff", 4)==0) {
@@ -505,4 +505,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
{
sr_kemi_modules_add(sr_kemi_statsc_exports);
return 0;
-}
\ No newline at end of file
+}