We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9bd79 commit 6598b7dCopy full SHA for 6598b7d
1 file changed
src/btop_draw.cpp
@@ -2381,7 +2381,7 @@ namespace Draw {
2381
2382
width = round((double)Term::width * (Proc::shown ? width_p : 100) / 100);
2383
#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;
+ 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;
2385
#else
2386
height = floor(static_cast<double>(Term::height) * (100 - Cpu::height_p * Cpu::shown - Net::height_p * Net::shown) / 100);
2387
#endif
0 commit comments