// begin
var graphs = {};
var tables = {};
- var neighbours = []; //list of clusters
+ var neighbours = []; // list of clusters
var checked_server = "All SERVERS";
var interface = {
read_only: false,
neighbours_status[ind].checked = true;
if (jQuery.isEmptyObject(data)) {
- neighbours_status[ind].status = false; //serv does not work
+ neighbours_status[ind].status = false; // serv does not work
} else {
- neighbours_status[ind].status = true; //serv does not work
+ neighbours_status[ind].status = true; // serv does not work
neighbours_status[ind].data = data;
}
if (neighbours_status.every(function (elt) { return elt.checked; })) {
}
}
}
- //error display
+ // error display
};
if (params) {
$.each(params, function(k, v) {
"pieOuterRadius": "85%"
},
"data": {
- //"sortOrder": "value-desc",
+ // "sortOrder": "value-desc",
"content": data.filter(function (elt) {
return elt.value > 0;
})
// @ ms to date
function msToTime(seconds) {
years = seconds / 31536000 >> 0; // 3600*24*365
- months = seconds % 31536000 / 2628000 >> 0; //3600*24*365/12
- days = seconds % 31536000 % 2628000 / 86400 >> 0; //24*3600
+ months = seconds % 31536000 / 2628000 >> 0; // 3600*24*365/12
+ days = seconds % 31536000 % 2628000 / 86400 >> 0; // 24*3600
hours = seconds % 31536000 % 2628000 % 86400 / 3600 >> 0;
minutes = seconds % 31536000 % 2628000 % 86400 % 3600 / 60 >> 0;
if (years > 0) {
var headers = {};
data = $("#" + source + "TextSource").val();
if (source == "fuzzy") {
- //To access the proper
+ // To access the proper
headers.flag = $("#fuzzyFlagText").val();
headers.weight = $("#fuzzyWeightText").val();
} else {