Skip to content

Bad size value with (fs.FileInfo).Size() on parameter #162

Description

@nacimgoura

Hello,
thanks for this library.
I use this to have a progress bar when I read a file, but I have a little bug.
I call file.Stat() to have the file size and I put on progressbar.
image
The problem is that the size value I pass as a parameter and the size displayed in the progress bar are not the same.
The size file is 159MB but the progress bar display 152MB.
image

I don't know why this difference exist.

Also, If i call bar.Finish() on the end of my process, the total size become huge.
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions