Дилян Палаузов 2 anos atrás
pai
commit
4c8276fcf2

+ 2 - 2
src/modules/kex/core_stats.c

@@ -409,7 +409,7 @@ struct rpc_list_params {
 
 
 /**
- * Satistic getter RPC callback.
+ * Statistic getter RPC callback.
  */
 static void rpc_get_grp_vars_cbk(void* p, str* g, str* n, counter_handle_t h)
 {
@@ -644,7 +644,7 @@ static void rpc_stats_fetchn_statistics(rpc_t* rpc, void* ctx)
 }
 
 /**
- * Satistic reset/clear-er RPC callback..
+ * Statistic reset/clear-er RPC callback..
  */
 static void rpc_reset_or_clear_grp_vars_cbk(void* p, str* g, str* n,
 		counter_handle_t h)

+ 4 - 4
src/modules/kex/doc/kex_admin.xml

@@ -88,7 +88,7 @@ setsflag("$var(flag)");
 		<section id="kex.f.issflagset">
 		<title><function moreinfo="none">issflagset(flag)</function></title>
 		<para>
-			Return true of the script flag is set.
+			Return true if the script flag is set.
 		</para>
 		<para>Meaning of the parameters is as follows:</para>
 		<itemizedlist>
@@ -179,7 +179,7 @@ setbflag("$var(flag)", "1");
 		<section id="kex.f.isbflagset">
 		<title><function moreinfo="none">isbflagset(flag [, branch])</function></title>
 		<para>
-			Return true of the branch flag is set.
+			Return true if the branch flag is set.
 		</para>
 		<para>Meaning of the parameters is as follows:</para>
 		<itemizedlist>
@@ -762,7 +762,7 @@ resetdebug();
 		</title>
 		<para>Print the list of available internal statistics.</para>
 		<para>NOTE: the result is an array of strings that have the list of
-		statistics formated like "name = value", being propagated over the time
+		statistics formatted like "name = value", being propagated over the time
 		from the MI variant. Use "stats.fetch" or "stats.fetchn"commands to have
 		a more JSON-friendly output.</para>
 		<para>Parameters: <emphasis>statsid</emphasis> - which statistics to
@@ -785,7 +785,7 @@ resetdebug();
 		<para>Print the list of available internal statistics with a more
 		json friendly output. Each printed statistic is a field in the output
 		structure: {"statsgroup.statsname" : "statsvalue"}. The value is
-		represented as string to accomodate large numbers.</para>
+		represented as string to accommodate large numbers.</para>
 		<para>Parameters: <emphasis>statsid</emphasis> - which statistics to
 		be printed. If set to 'all' then all statistics are printed; if
 		set to 'statsgroup:' then all statistics in the group are printed;

+ 1 - 1
src/modules/kex/kex_mod.c

@@ -141,7 +141,7 @@ static int mod_init(void)
 	register_pkg_proc_stats();
 	pkg_proc_stats_init_rpc();
 
-	/* per module memmory debugging RPC command */
+	/* per module memory debugging RPC command */
 	mod_stats_init_rpc();
 
 	return 0;