summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlex Goodman <wagoodman@gmail.com>2018-10-21 13:03:10 -0400
committerAlex Goodman <wagoodman@gmail.com>2018-10-21 13:04:26 -0400
commitfad2354e894b1b642c9765c5272aa1939b7c0be4 (patch)
tree86bd02cb2cbaf97d141063670b89b1804161aacc /ui
parent3ea8c0ab4ab984ae27917de9ed7e8c6e7d99a9a2 (diff)
fixed inefficient file report bug
Diffstat (limited to 'ui')
-rw-r--r--ui/detailsview.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/detailsview.go b/ui/detailsview.go
index 778b1fb..3753a7d 100644
--- a/ui/detailsview.go
+++ b/ui/detailsview.go
@@ -2,7 +2,6 @@ package ui
import (
"fmt"
-
"github.com/dustin/go-humanize"
"github.com/jroimartin/gocui"
"github.com/lunixbochs/vtclean"
@@ -97,7 +96,7 @@ func (view *DetailsView) Render() error {
template := "%5s %12s %-s\n"
var trueInefficiencies int
inefficiencyReport := fmt.Sprintf(Formatting.Header(template), "Count", "Total Space", "Path")
- for idx := len(view.inefficiencies) - 1; idx > 0; idx-- {
+ for idx := len(view.inefficiencies) - 1; idx >= 0; idx-- {
data := view.inefficiencies[idx]
if data.CumulativeSize == 0 {
continue