File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ namespace Config {
117117 {" proc_info_smaps" , " #* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)" },
118118
119119 {" proc_left" , " #* Show proc box on left side of screen instead of right." },
120+
121+ {" proc_box_wide" , " #* Make the proc box wider when Net and Mem boxes are shown." },
120122
121123 {" proc_filter_kernel" , " #* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop)." },
122124
@@ -340,6 +342,7 @@ namespace Config {
340342 {" proc_follow_detailed" , true },
341343 {" follow_process" , false },
342344 {" update_following" , false },
345+ {" proc_box_wide" , false },
343346 #ifdef GPU_SUPPORT
344347 {" nvml_measure_pcie_speeds" , true },
345348 {" rsmi_measure_pcie_speeds" , true },
Original file line number Diff line number Diff line change @@ -2347,7 +2347,8 @@ namespace Draw {
23472347 auto swap_disk = Config::getB (" swap_disk" );
23482348 auto mem_graphs = Config::getB (" mem_graphs" );
23492349
2350- width = round ((double )Term::width * (Proc::shown ? width_p : 100 ) / 100 );
2350+ const bool is_proc_box_wide = Config::getB (" proc_box_wide" ) and Proc::shown;
2351+ width = is_proc_box_wide ? min_width : round ((double )Term::width * (Proc::shown ? width_p : 100 ) / 100 );
23512352 #ifdef GPU_SUPPORT
23522353 height = ceil ((double )Term::height * (100 - Net::height_p * Net::shown*4 / ((Gpu::shown != 0 and Cpu::shown) + 4 )) / 100 ) - Cpu::height - Gpu::total_height;
23532354 #else
@@ -2411,7 +2412,8 @@ namespace Draw {
24112412 // * Calculate and draw net box outlines
24122413 if (Net::shown) {
24132414 using namespace Net ;
2414- width = round ((double )Term::width * (Proc::shown ? width_p : 100 ) / 100 );
2415+ const bool is_proc_box_wide = Config::getB (" proc_box_wide" ) and Proc::shown;
2416+ width = is_proc_box_wide ? min_width : round ((double )Term::width * (Proc::shown ? width_p : 100 ) / 100 );
24152417 #ifdef GPU_SUPPORT
24162418 height = Term::height - Cpu::height - Gpu::total_height - Mem::height;
24172419 #else
Original file line number Diff line number Diff line change @@ -795,6 +795,11 @@ namespace Menu {
795795 " " ,
796796 " Show proc box on left side of screen" ,
797797 " instead of right." },
798+ {" proc_box_wide" ,
799+ " Wider proc box." ,
800+ " " ,
801+ " The proc box with be wider when the" ,
802+ " net or mem boxes are shown." },
798803 {" graph_symbol_proc" ,
799804 " Graph symbol to use for graphs in proc box." ,
800805 " " ,
You can’t perform that action at this time.
0 commit comments