mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
gui/dboxinfo.cpp: do not paint empty line
This commit is contained in:
@@ -419,7 +419,7 @@ void CDBoxInfoWidget::paint()
|
||||
|
||||
int off = std::max(0, (int)sysload->data_avail - pbw);
|
||||
for (unsigned int i = 0; i < sysload->data_avail - off; i++) {
|
||||
if (sysload->data[i + off] > -1)
|
||||
if ((sysload->data[i + off] * h / 1000) > 0)
|
||||
frameBuffer->paintVLine(x+offsetw + i, cpuload_y1 - sysload->data[i + off] * h / 1000, cpuload_y1, COL_MENUCONTENT_PLUS_7);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user