mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add system stats REST endpoint. Load disk space utilzation via AJAX (fix #3421)
This commit is contained in:
parent
5351320114
commit
da6f1c354d
4 changed files with 171 additions and 84 deletions
|
|
@ -195,7 +195,7 @@ function stackedProgressBars(total, bars, other_label, formatter, css_class)
|
|||
formatter = formatter or (function(x) return x end)
|
||||
|
||||
-- The bars
|
||||
res[#res + 1] = [[<div class=' ]] .. (css_class or "ntop-progress-stacked") .. [['><div class="progress">]]
|
||||
res[#res + 1] = [[<div class=']] .. (css_class or "ntop-progress-stacked") .. [['><div class="progress">]]
|
||||
|
||||
for _, bar in ipairs(bars) do cumulative = cumulative + bar.value end
|
||||
if cumulative > total then total = cumulative end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue