mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-22 14:53:56 +00:00
update progress rendering to be closer to v0.1.10
This commit is contained in:
@@ -66,7 +66,8 @@ func (b *Bar) String() string {
|
||||
|
||||
mid.WriteString("▕")
|
||||
|
||||
f := termWidth - pre.Len() - suf.Len() - 2
|
||||
// add 3 extra spaces: 2 boundary characters and 1 space at the end
|
||||
f := termWidth - pre.Len() - suf.Len() - 3
|
||||
n := int(float64(f) * b.percent() / 100)
|
||||
|
||||
if n > 0 {
|
||||
|
||||
Reference in New Issue
Block a user