Skip to content

progressbar calculates invalid total size #2

@sauromates

Description

@sauromates

Problem

Client is using github.com/schollz/progressbar/v3 for progress tracking. The following initializer code leads to wrong total size shown:

tracker := progressbar.DefaultBytes(int64(torrent.Length), "Downloading")

Pattern

  • Size in progressbar is always larger than actual size
  • Observed at least two variations: 102 Mb-> 107 Mb and 19 Gb -> 21 Gb

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions