changeset 3781:263f5f1ee71f

mod_nodeinfo2: Store a table instead of an integer (workaround for #905)
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 29 Dec 2019 19:53:23 +0100
parents 824447fc7759
children 70e5bab388d8
files mod_nodeinfo2/mod_nodeinfo2.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_nodeinfo2/mod_nodeinfo2.lua	Fri Dec 27 19:33:04 2019 +0100
+++ b/mod_nodeinfo2/mod_nodeinfo2.lua	Sun Dec 29 19:53:23 2019 +0100
@@ -48,8 +48,8 @@
 			for stat, _ in pairs(stats) do
 				if stat == "/*/mod_measure_message_e2ee/message:rate" then
 					local new_message_count = extras[stat].total;
-					if new_message_count ~= message_count then
-						message_count = new_message_count;
+					if new_message_count ~= message_count[1] then
+						message_count = { new_message_count };
 						message_count_store:set("message_count", message_count);
 					end
 				end