Milo-Defrag: Notify how many slots were freed

This commit is contained in:
Anavrins
2020-04-20 18:08:39 -04:00
parent 2f187a196f
commit 1d1a770e4b

View File

@@ -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()