summaryrefslogtreecommitdiffstats
path: root/stdout
diff options
context:
space:
mode:
authorDaniel Milde <daniel@milde.cz>2022-01-18 00:29:17 +0100
committerDaniel Milde <daniel@milde.cz>2022-01-18 00:30:36 +0100
commitb1e9ea9d0e90e42d87ff8ad2fd938c4de7b40e30 (patch)
tree307ac7b19de2a2900e7fcde9cf498a7fdbfd6d9d /stdout
parentf33f5911ec46c991c08f4d40232663d9ba29c414 (diff)
balance speed and memory usage
#114
Diffstat (limited to 'stdout')
-rw-r--r--stdout/stdout.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdout/stdout.go b/stdout/stdout.go
index 88995b1..7b970bf 100644
--- a/stdout/stdout.go
+++ b/stdout/stdout.go
@@ -36,7 +36,7 @@ func CreateStdoutUI(
showProgress bool,
showApparentSize bool,
summarize bool,
- enableGC bool,
+ constGC bool,
useSIPrefix bool,
) *UI {
ui := &UI{
@@ -45,7 +45,7 @@ func CreateStdoutUI(
ShowProgress: showProgress,
ShowApparentSize: showApparentSize,
Analyzer: analyze.CreateAnalyzer(),
- EnableGC: enableGC,
+ ConstGC: constGC,
UseSIPrefix: useSIPrefix,
},
output: output,
@@ -144,7 +144,7 @@ func (ui *UI) AnalyzePath(path string, _ fs.Item) error {
wait.Add(1)
go func() {
defer wait.Done()
- dir = ui.Analyzer.AnalyzeDir(path, ui.CreateIgnoreFunc(), ui.EnableGC)
+ dir = ui.Analyzer.AnalyzeDir(path, ui.CreateIgnoreFunc(), ui.ConstGC)
dir.UpdateStats(make(fs.HardLinkedItems, 10))
}()