From b4e5d0fce097da02a21e4026f2ff63eb3c192268 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 1 Jan 2025 18:39:08 -0800 Subject: [PATCH] chore: fix ui for hashing progressbar --- src/utils/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/utils.go b/src/utils/utils.go index fa3798c04..58782d689 100644 --- a/src/utils/utils.go +++ b/src/utils/utils.go @@ -138,6 +138,7 @@ func HighwayHashFile(fname string, doShowProgress bool) (hashHighway []byte, err progressbar.OptionShowBytes(true), progressbar.OptionSetDescription(fmt.Sprintf("Hashing %s", fnameShort)), progressbar.OptionClearOnFinish(), + progressbar.OptionFullWidth(), ) if _, err = io.Copy(io.MultiWriter(h, bar), f); err != nil { return @@ -172,6 +173,7 @@ func MD5HashFile(fname string, doShowProgress bool) (hash256 []byte, err error) progressbar.OptionShowBytes(true), progressbar.OptionSetDescription(fmt.Sprintf("Hashing %s", fnameShort)), progressbar.OptionClearOnFinish(), + progressbar.OptionFullWidth(), ) if _, err = io.Copy(io.MultiWriter(h, bar), f); err != nil { return @@ -223,6 +225,7 @@ func XXHashFile(fname string, doShowProgress bool) (hash256 []byte, err error) { progressbar.OptionShowBytes(true), progressbar.OptionSetDescription(fmt.Sprintf("Hashing %s", fnameShort)), progressbar.OptionClearOnFinish(), + progressbar.OptionFullWidth(), ) if _, err = io.Copy(io.MultiWriter(h, bar), f); err != nil { return