From 9a0ec3e6b0eb39c8e99ec6141fc655e75d4b3698 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Fri, 2 Sep 2022 00:12:48 +0400 Subject: [PATCH] Fix cache reclaimed bytes calculation (#223) --- Sources/tart/Commands/Prune.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/Commands/Prune.swift b/Sources/tart/Commands/Prune.swift index a88f14a..318f441 100644 --- a/Sources/tart/Commands/Prune.swift +++ b/Sources/tart/Commands/Prune.swift @@ -101,7 +101,7 @@ struct Prune: AsyncParsableCommand { break } - cacheReclaimedBytes -= try prunable.sizeBytes() + cacheReclaimedBytes += try prunable.sizeBytes() try prunable.delete() } }