Skip to content

Commit

Permalink
Fix percent displayed in files progress
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Dec 14, 2024
1 parent 092a00c commit adc9b79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FilesTab extends StatelessWidget {
itemBuilder: (context, index) {
var file = files[index];

var percent = (file.bytesCompleted / file.length).floor() * 100;
var percent = (file.bytesCompleted / file.length * 100).floor();

var completed = file.bytesCompleted == file.length;

Expand Down

0 comments on commit adc9b79

Please sign in to comment.