From a1d8f2742acccdec65f3344ae8d99c6472268bb7 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 8 Jul 2024 01:14:58 +0700 Subject: [PATCH] Minor improvements (#1531) * Minor improvements * Update CHANGELOG.md * Update cron_run.php --- CHANGELOG.md | 2 +- library/attach_mod/displaying_torrent.php | 2 +- library/includes/cron/cron_run.php | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04401d1db..d80525bea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ - Some security improvements 🔑 [\#1503](https://github.com/torrentpier/torrentpier/pull/1503), [\#1505](https://github.com/torrentpier/torrentpier/pull/1505) ([belomaxorka](https://github.com/belomaxorka)) - Some improvements for integrity checker [\#1501](https://github.com/torrentpier/torrentpier/pull/1501) ([belomaxorka](https://github.com/belomaxorka)) - Hide vote button in topic for guests [\#1507](https://github.com/torrentpier/torrentpier/pull/1507) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515), [\#1516](https://github.com/torrentpier/torrentpier/pull/1516), [\#1517](https://github.com/torrentpier/torrentpier/pull/1517), [\#1519](https://github.com/torrentpier/torrentpier/pull/1519), [\#1523](https://github.com/torrentpier/torrentpier/pull/1523), [\#1525](https://github.com/torrentpier/torrentpier/pull/1525), [\#1530](https://github.com/torrentpier/torrentpier/pull/1530) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515), [\#1516](https://github.com/torrentpier/torrentpier/pull/1516), [\#1517](https://github.com/torrentpier/torrentpier/pull/1517), [\#1519](https://github.com/torrentpier/torrentpier/pull/1519), [\#1523](https://github.com/torrentpier/torrentpier/pull/1523), [\#1525](https://github.com/torrentpier/torrentpier/pull/1525), [\#1530](https://github.com/torrentpier/torrentpier/pull/1530), [\#1531](https://github.com/torrentpier/torrentpier/pull/1531) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1504](https://github.com/torrentpier/torrentpier/pull/1504), [\#1513](https://github.com/torrentpier/torrentpier/pull/1513) ([Exileum](https://github.com/Exileum)) ## [v2.4.3](https://github.com/torrentpier/torrentpier/tree/v2.4.3) (2024-06-09) diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index e3a81a40c..0516aae91 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -27,7 +27,7 @@ $peers_div_style_overflow = "padding: 6px; height: $peers_overflow_div_height; o $s_last_seed_date_format = 'Y-m-d'; $upload_image = '' . $lang['DL_TORRENT'] . ''; -$peers_cnt = $seed_count = 0; +$peers_cnt = $seed_count = $leech_count = 0; $seeders = $leechers = ''; $tor_info = []; diff --git a/library/includes/cron/cron_run.php b/library/includes/cron/cron_run.php index e3ff75649..d44f4b369 100644 --- a/library/includes/cron/cron_run.php +++ b/library/includes/cron/cron_run.php @@ -24,6 +24,7 @@ DB()->query(" , sort_buffer_size = 4*1024*1024 , tmp_table_size = 80*1024*1024 , group_concat_max_len = 1*1024*1024 + , wait_timeout = 6*100 "); // Restore vars at shutdown @@ -37,6 +38,7 @@ DB()->add_shutdown_query(" , sort_buffer_size = DEFAULT , tmp_table_size = DEFAULT , group_concat_max_len = DEFAULT + , wait_timeout = DEFAULT "); // $cron_jobs obtained in cron_check.php