Commit 0b577953 authored by Eduardo L. Buratti's avatar Eduardo L. Buratti

Fix a series of small bugs

Signed-off-by: Eduardo L. Buratti's avatarEduardo L. Buratti <elb09@c3sl.ufpr.br>
parent 8d35db8b
......@@ -45,9 +45,9 @@ public class NetUsage implements java.io.Serializable {
try {
PreparedStatement st = conn.prepareStatement(
"SELECT (dat_id + collect_time - interval '00:02:30'), " +
" sum(down_kbits)/1024/300*8::bigint, sum(up_kbits)/1024/300*8::bigint " +
" (sum(down_kbits)/300)::bigint, (sum(up_kbits)/300)::bigint " +
"FROM fact_net_usage " +
"WHERE sch_id=? " +
"WHERE sch_id=? AND dat_id > (current_date - interval '6 months') " +
"GROUP BY sch_id, dat_id, collect_time " +
"ORDER BY dat_id, collect_time ASC;");
st.setLong(1, id);
......
......@@ -64,6 +64,7 @@ Charts.load = function(project, region, state, city) {
tempInput.value = category;
tempForm.appendChild(tempInput);
document.body.appendChild(tempForm);
tempForm.submit();
};
}
......
......@@ -138,6 +138,10 @@ $.fn.loadContent = function() {
legend: {
enabled: true
},
tooltip: {
shared: true,
pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y} Kbps</b><br/>'
},
series : [{
name : 'Download',
data : data.download,
......
Markdown is supported
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