From ff6db92ac31affcfb7e6a92763be804ce1d39c25 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 28 Jan 2024 10:51:30 +0700 Subject: [PATCH] Update torrent_show_dl_list.php --- library/includes/torrent_show_dl_list.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/includes/torrent_show_dl_list.php b/library/includes/torrent_show_dl_list.php index 01dacff6..a91f3f45 100644 --- a/library/includes/torrent_show_dl_list.php +++ b/library/includes/torrent_show_dl_list.php @@ -95,6 +95,10 @@ if ($show_dl_list) } if ($dl_cat[$i] && !$count_mode) { + if ($i == DL_STATUS_COMPLETE) + { + $dl_completed_count++; + } $dl_users_div_style = ($dl_count[$i] > $max_dl_users_before_overflow) ? $dl_users_div_style_overflow : $dl_users_div_style_normal; $dl_cat[$i][strlen($dl_cat[$i])-2] = ' '; $dl_cat[$i] = "". $dl_cat[$i] .''; @@ -108,6 +112,10 @@ if ($show_dl_list) } else if ($dl_count[$i] && $count_mode) { + if ($i == DL_STATUS_COMPLETE) + { + $dl_completed_count++; + } if ($i == DL_STATUS_CANCEL && !$show_canceled_in_count_mode) { continue;