minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

fix: add showLastProgressBar #4855

Closed jiuker closed 8 months ago

jiuker commented 8 months ago

add showLastProgressBar

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

fix: add showLastProgressBar fix:

MacBook-Pro mc % ./mc put /minio/minio-server minio/mytest/minio-server
...i/workspace/go/src/minio/minio-server: 119.88 MiB / 127.30 MiB ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┉┉┉┉┉┉┉┉━ 318.38 MiB/s

After:

MacBook-Pro mc % ./mc put /minio/minio-server minio/mytest/minio-server
...i/workspace/go/src/minio/minio-server: 127.30 MiB / 127.30 MiB ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 316.30 MiB/s 0s

Motivation and Context

How to test this PR?

Types of changes

Checklist: