gui/dboxinfo.cpp: do not paint empty line

Origin commit data
------------------
Commit: 6857f616c2
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-09 (Tue, 09 Sep 2014)
This commit is contained in:
[CST] Focus
2014-09-09 15:20:35 +04:00
parent aa74b364dc
commit 3e2c460cc0

View File

@@ -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);
}
}