Software /
code /
prosody
Changeset
8925:d367aeb9c50f
MUC: Rename eviction hit rate measure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Jun 2018 18:58:56 +0200 |
parents | 8924:8fe98e365ab8 |
children | 8926:89f6b2a2bec3 |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Sat Jun 23 17:28:24 2018 +0200 +++ b/plugins/muc/mod_muc.lua Sat Jun 23 18:58:56 2018 +0200 @@ -135,14 +135,14 @@ 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