Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the progress bars refresh rate from 0.2 seconds to 1 second #1333

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions utils/progressbar/progressbarmng.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
package progressbar

import (
golangLog "log"
"math"
"os"
"strconv"
"strings"
"sync"
"time"

"github.com/gookit/color"
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
corelog "github.com/jfrog/jfrog-cli-core/v2/utils/log"
Expand All @@ -11,19 +19,12 @@ import (
"github.com/vbauerster/mpb/v8"
"github.com/vbauerster/mpb/v8/decor"
"golang.org/x/term"
golangLog "log"
"math"
"os"
"strconv"
"strings"
"sync"
"time"
)

const (
ProgressBarWidth = 20
longProgressBarWidth = 100
ProgressRefreshRate = 200 * time.Millisecond
ProgressRefreshRate = time.Second
)

var terminalWidth int
Expand Down
Loading