[PATCH] config: Allow dynamic change of token_coefficient

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



token_coefficient change in cmap didn't triggered change. So only way
how to change token_coefficient was editing config file and reload.

Patch let's key totem.token_coefficient to be processed so
token_coefficient can be dynamically changed.

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 exec/totemconfig.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exec/totemconfig.c b/exec/totemconfig.c
index 4aa8cc5..4d1c1e3 100644
--- a/exec/totemconfig.c
+++ b/exec/totemconfig.c
@@ -1199,7 +1199,7 @@ static void totem_change_notify(
 		return;
 
 	param = totem_get_param_by_name((struct totem_config *)user_data, key_name);
-	if (!param)
+	if (!param && strcmp(key_name, "totem.token_coefficient") != 0)
 		return;
 
 	/*
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux