From 3ae6bbc3945a13fbe868953c1ff3aac4976308c9 Mon Sep 17 00:00:00 2001 From: kunalkakade Date: Fri, 7 Aug 2026 17:40:23 +0530 Subject: [PATCH] Fix garbage throttle values in the status bar on 32-bit archs. Closes #1683. --- src/display/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/utils.cc b/src/display/utils.cc index cef642ab..fa6acfd1 100644 --- a/src/display/utils.cc +++ b/src/display/utils.cc @@ -345,7 +345,7 @@ print_status_info(char* first, char* last) { if (!torrent::up_throttle_global()->is_throttled()) { first = print_buffer(first, last, "[Throttle off"); } else { - first = print_buffer(first, last, "[Throttle %3i", torrent::up_throttle_global()->max_rate() / 1024); + first = print_buffer(first, last, "[Throttle %3i", (int)(torrent::up_throttle_global()->max_rate() / 1024)); if (!throttle_up_names.empty()) first = print_status_throttle_limit(first, last, true, throttle_up_names); @@ -354,7 +354,7 @@ print_status_info(char* first, char* last) { if (!torrent::down_throttle_global()->is_throttled()) { first = print_buffer(first, last, " / off KB]"); } else { - first = print_buffer(first, last, " / %3i", torrent::down_throttle_global()->max_rate() / 1024); + first = print_buffer(first, last, " / %3i", (int)(torrent::down_throttle_global()->max_rate() / 1024)); if (!throttle_down_names.empty()) first = print_status_throttle_limit(first, last, false, throttle_down_names);