Commit 14a64da0 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

fixed check_links to work for non-downtime parameter

parent a395ef4e
......@@ -1383,7 +1383,7 @@ function check_asymmetry(){
for (i=0;i< summary.length;i++){
var entry=summary[i]._source;
var a=entry.from + " " + entry.to;
down[a]= entry.down_ppm;
down[a]= entry[ $("#prop_select").val() ];
ab[a]=true;
}
for (i=0;i<summary.length;i++){
......@@ -1422,8 +1422,8 @@ function check_asymmetry(){
html+='</table>';
html+='<p>' + "Ok " + nok + " Missing " + nmiss;
html += "<h3>Asymmetry in dependability(PPM)</h3>";
html += '<table border=1><tr><th>From<th>To<th> PPM <th> PPM <th> Diff';
html += "<h3>Asymmetry in " + prop_desc[ $("#prop_select").val() ] + "</h3>";
html += '<table border=1><tr><th>From<th>To<th>from-to<th>to-from<th> Diff';
diff.sort( function(a,b){
if ( typeof(a.val) === "number" && typeof(b.val) === "number" )
return b.val - a.val;
......@@ -1432,9 +1432,9 @@ function check_asymmetry(){
for (i=0; i< diff.length; i++){
let a = diff[i].id;
let ft=a.split(" ");
let aval= down[a] ? down[a].toFixed(0) : down[a];
let bval= down[pair[a]] ? down[pair[a]].toFixed(0) : down[pair[a]];
let diffval = diff[i].val ? diff[i].val.toFixed(0) : 0 ;
let aval= down[a] ? down[a].toFixed(1) : down[a];
let bval= down[pair[a]] ? down[pair[a]].toFixed(1) : down[pair[a]];
let diffval = diff[i].val ? diff[i].val.toFixed(1) : 0 ;
html+='<tr><td>' +ft[0] + '<td>'+ ft[1] +
'<td align=right>' + aval + '<td align=right>' + bval + '<td align=right>' + diffval;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment