Partial rework of NetworkInterfaceView (work in progress)

This commit is contained in:
Luca Deri 2015-09-16 00:41:29 +02:00
parent d4ad6fbff4
commit 4dd80d4778
32 changed files with 183 additions and 107 deletions

View file

@ -139,7 +139,7 @@ end
-- ########################################################
function percentageBar(total, value, valueLabel)
if(total > 0) then
if((total ~= nil) and (total > 0)) then
pctg = round((value * 100) / total, 0)
print('<div class="progress"><div class="progress-bar progress-bar-warning" aria-valuenow="'.. pctg..'" aria-valuemin="0" aria-valuemax="100" style="width: ' .. pctg.. '%;">'..valueLabel)
print('</div></div>')