From 42bd0594e68555b1146249307e3b98199432f741 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 6 Jan 2025 19:01:53 +0700 Subject: [PATCH] Update Torrent.php --- src/Legacy/Torrent.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 139bbdd45..5781ff3e1 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -420,7 +420,6 @@ class Torrent } $totallen = 0; - if (isset($info['length'])) { $totallen = (float)$info['length']; } elseif (isset($bt_v1, $info['files']) && !isset($bt_v2) && is_array($info['files'])) { @@ -459,7 +458,6 @@ class Torrent } else { self::torrent_error_exit($lang['TORFILE_INVALID']); } - $size = sprintf('%.0f', (float)$totallen); $columns = 'info_hash, info_hash_v2, post_id, poster_id, topic_id, forum_id, attach_id, size, reg_time, tor_status, ext_seeders, ext_leechers';