Skip to content

Commit c420e4d

Browse files
committed
Reduce progress bar refresh rate
1 parent 66660ff commit c420e4d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

utils/progressbar/progressbarmng.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
package progressbar
22

33
import (
4+
golangLog "log"
5+
"math"
6+
"os"
7+
"strconv"
8+
"strings"
9+
"sync"
10+
"time"
11+
412
"github.com/gookit/color"
513
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
614
corelog "github.com/jfrog/jfrog-cli-core/v2/utils/log"
@@ -11,19 +19,12 @@ import (
1119
"github.com/vbauerster/mpb/v8"
1220
"github.com/vbauerster/mpb/v8/decor"
1321
"golang.org/x/term"
14-
golangLog "log"
15-
"math"
16-
"os"
17-
"strconv"
18-
"strings"
19-
"sync"
20-
"time"
2122
)
2223

2324
const (
2425
ProgressBarWidth = 20
2526
longProgressBarWidth = 100
26-
ProgressRefreshRate = 200 * time.Millisecond
27+
ProgressRefreshRate = time.Second
2728
)
2829

2930
var terminalWidth int

0 commit comments

Comments
 (0)