aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-23 18:58:56 +0200
committerKim Alvefur <zash@zash.se>2018-06-23 18:58:56 +0200
commit53672d196c0e94b527f274dd11fde720f02a8755 (patch)
tree5e937b85c98373f775c184632165c2013c9bcd70 /plugins/muc
parent420d2eac44bdc25b61db77d7755c0d8159ea4614 (diff)
downloadprosody-53672d196c0e94b527f274dd11fde720f02a8755.tar.gz
prosody-53672d196c0e94b527f274dd11fde720f02a8755.zip
MUC: Rename eviction hit rate measure
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 1c52078b..ab845e5b 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -135,14 +135,14 @@ end
local max_rooms = module:get_option_number("muc_max_rooms");
local max_live_rooms = module:get_option_number("muc_room_cache_size", 100);
-local eviction_hit_rate = module:measure("room_eviction", "rate");
+local room_eviction = module:measure("room_eviction", "rate");
local rooms = cache.new(max_rooms or max_live_rooms, function (jid, room)
if max_rooms then
module:log("info", "Room limit of %d reached, no new rooms allowed");
return false;
end
module:log("debug", "Evicting room %s", jid);
- eviction_hit_rate();
+ room_eviction();
room_items_cache[room.jid] = room:get_public() and room:get_name() or nil;
local ok, err = room_save(room, nil, true); -- Force to disk
if not ok then