Skip to content

Commit 6598b7d

Browse files
authored
fix: net min size for gpu compiled build (#1516)
Closes: #1509
1 parent 0b9bd79 commit 6598b7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/btop_draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ namespace Draw {
23812381

23822382
width = round((double)Term::width * (Proc::shown ? width_p : 100) / 100);
23832383
#ifdef GPU_SUPPORT
2384-
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;
2384+
height = floor(static_cast<double>(Term::height) * (100 - Net::height_p * Net::shown*4 / ((Gpu::shown != 0 and Cpu::shown) + 4)) / 100) - Cpu::height - Gpu::total_height;
23852385
#else
23862386
height = floor(static_cast<double>(Term::height) * (100 - Cpu::height_p * Cpu::shown - Net::height_p * Net::shown) / 100);
23872387
#endif

0 commit comments

Comments
 (0)