Skip to content

Commit

Permalink
boxinfo: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Aug 18, 2023
1 parent ebe063a commit 7f32730
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/dboxinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ static std::string bytes2string(uint64_t bytes, bool binary)

void CDBoxInfoWidget::paint()
{
int frontend_count = CFEManager::getInstance()->getFrontendCount();
height = hheight;
height += mheight/2; // space
int cpuload_y0 = height;
Expand All @@ -257,12 +258,12 @@ void CDBoxInfoWidget::paint()
height += mheight; // uptime
height += mheight; // load
#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO)
height += mheight; // temp
if (frontend_count < 7)
height += mheight; // temp
#endif
int cpuload_y1 = height;
height += mheight/2; // space

int frontend_count = CFEManager::getInstance()->getFrontendCount();
if (frontend_count > 6)
height += mheight * 2;
else
Expand Down

0 comments on commit 7f32730

Please sign in to comment.