From adc9b79e96ea8bda2c8de824acf74b471f2aeda3 Mon Sep 17 00:00:00 2001 From: Geoffrey Bonneville Date: Sat, 14 Dec 2024 17:34:17 +0100 Subject: [PATCH] Fix percent displayed in files progress --- app/lib/screens/torrents/sheets/torrent_details/tabs/files.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/screens/torrents/sheets/torrent_details/tabs/files.dart b/app/lib/screens/torrents/sheets/torrent_details/tabs/files.dart index 4146b5c..abbf341 100644 --- a/app/lib/screens/torrents/sheets/torrent_details/tabs/files.dart +++ b/app/lib/screens/torrents/sheets/torrent_details/tabs/files.dart @@ -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;