mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
Add host availability percentage
This commit is contained in:
parent
bc154394e9
commit
7bd499adb9
5 changed files with 72 additions and 16 deletions
|
|
@ -325,6 +325,21 @@ $(document).ready(function() {
|
|||
return(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
data: 'availability',
|
||||
className: 'text-center',
|
||||
render: function(data, type, row) {
|
||||
if(type === 'display' || type === 'filter') {
|
||||
if(row.availability != "")
|
||||
return Math.round(row.availability) + "%";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
// The raw data must be returned here for sorting
|
||||
return(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
data: 'last_mesurement_time',
|
||||
className: 'dt-body-right dt-head-center'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue