This commit is contained in:
ZZY 2025-02-10 16:33:44 +08:00
parent 68ed2564bf
commit dd4cc42692

View File

@ -176,7 +176,7 @@ func (ui *UI) renderList() {
renderLine := func(entry *node.PathNode) string {
return fmt.Sprintf("%s %10s %10s %s\n", icon_type[entry.GetType()],
node.FormatSize(entry.GetSize()),
utils.FormatProgressBar(entry.GetSize(), nodes[0].GetSize(), 10,
FormatProgressBar(entry.GetSize(), nodes[0].GetSize(), 10,
[]string{" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█"}),
entry.GetPath())
}