From 1d1a770e4b891966eba69e44754fd9e2344e358f Mon Sep 17 00:00:00 2001 From: Anavrins Date: Mon, 20 Apr 2020 18:08:39 -0400 Subject: [PATCH] Milo-Defrag: Notify how many slots were freed --- milo/core/listing.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/milo/core/listing.lua b/milo/core/listing.lua index afd359c..5d5c796 100644 --- a/milo/core/listing.lua +++ b/milo/core/listing.lua @@ -370,8 +370,9 @@ function page:defrag() local throttle = function() self.throttle:update() end self.throttle:enable() - context.storage:defrag(throttle) + local saved = context.storage:defrag(throttle) self.throttle:disable() + self:notifyInfo(("Saved %d slots"):format(saved)) end function page:applyFilter()