btop: add patch to fix download/upload display
authorNate Robinson <[email protected]>
Thu, 19 Jun 2025 16:46:06 +0000 (12:46 -0400)
committerTianling Shen <[email protected]>
Fri, 20 Jun 2025 04:03:02 +0000 (12:03 +0800)
Uses https://github.com/aristocratos/btop/pull/1156

Signed-off-by: Nate Robinson <[email protected]>
admin/btop/Makefile
admin/btop/patches/001-Fix-incorrect-positioning-and-start-symbol-of-second.patch [new file with mode: 0644]

index e655f312ee1ac63671e47f9df28f3d99864c06e8..0e7f4e565608301cec71d0987590a5d9b0d8588a 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=btop
 PKG_VERSION:=1.4.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL=https://codeload.github.com/aristocratos/btop/tar.gz/v$(PKG_VERSION)?
diff --git a/admin/btop/patches/001-Fix-incorrect-positioning-and-start-symbol-of-second.patch b/admin/btop/patches/001-Fix-incorrect-positioning-and-start-symbol-of-second.patch
new file mode 100644 (file)
index 0000000..c16db26
--- /dev/null
@@ -0,0 +1,21 @@
+From d758fc8dc647a12c1bf1b1c1aa5893f92e4daf91 Mon Sep 17 00:00:00 2001
+From: xDMPx <[email protected]>
+Date: Tue, 13 May 2025 00:06:09 +0200
+Subject: [PATCH] Fix incorrect positioning and start symbol of second title
+ introduced in 2538d89ed97bd98b8c092ca73ec75be7db888467
+
+---
+ src/btop_draw.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/btop_draw.cpp
++++ b/src/btop_draw.cpp
+@@ -293,7 +293,7 @@ namespace Draw {
+               }
+               if (not title2.empty()) {
+                       out += fmt::format(
+-                              "{}{}{}{}{}{}{}{}{}", Mv::to(y, x + 2), Symbols::title_left, Fx::b, numbering, Theme::c("title"), title2, Fx::ub,
++                              "{}{}{}{}{}{}{}{}{}", Mv::to(y + height - 1, x + 2), Symbols::title_left_down, Fx::b, numbering, Theme::c("title"), title2, Fx::ub,
+                               line_color, Symbols::title_right_down
+                       );
+               }