Skip to content

sizeUploaded not returning integer value #173

@vrockai

Description

@vrockai

While the Readme says

.sizeUploaded() Returns the total size uploaded of all files in bytes.

but the function itself returns a floating point value. The total value sometimes doesn't match the total value at the end of the upload due to the precision of the division. The value is sometime greater than, sometimes less than the total value (only by some small number like ~0.000001).

The error lies in the way the size is computed for non-yet-success files:

size = this.progress() * size;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions