Skip to content

Commit

Permalink
Fix top hosts links
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Dec 20, 2018
1 parent cbb21f0 commit 2223289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion httpdocs/js/cubism_ntop.v1.js
Expand Up @@ -2,9 +2,10 @@
var cubism = exports.cubism = {version: "1.2.0"};
var cubism_id = 0;
function cubism_title(d) {
var v = d.toString().split("|");
return("&nbsp;<A HREF=\""
+ http_prefix /* this must be defined in the lua caller */
+ "/lua/host_details.lua?host="+d+"\">"+d+"</A>"); }
+ "/lua/host_details.lua?host="+v[0]+"\">"+v[1]+"</A>"); }
function cubism_identity(d) { return(d); }
cubism.option = function(name, defaultValue) {
var values = cubism.options(name);
Expand Down
2 changes: 1 addition & 1 deletion scripts/lua/top_hosts.lua
Expand Up @@ -84,7 +84,7 @@ print [[/lua/get_host_traffic.lua?host="+name, function(data) {
}
}
callback(null, values = values.slice((start - stop) / step));
}, symname);
}, (name + "|" + symname));
}
var width = 800;
Expand Down

0 comments on commit 2223289

Please sign in to comment.