mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Partial rework of NetworkInterfaceView (work in progress)
This commit is contained in:
parent
d4ad6fbff4
commit
4dd80d4778
32 changed files with 183 additions and 107 deletions
|
|
@ -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>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue