Commit b1ff6f79 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Mathieu Giraud

js/graphs.js: fix calculation of ratios for .alert and .warning

parent 44aad179
......@@ -899,7 +899,7 @@ Graph.prototype = {
if ( i == this.m.t ) d.class = "graph_time2"
// Warns when there are very few segmented reads
var percent = (this.m.reads.segmented[this.m.t] / this.m.reads.total[this.m.t]) * 100;
var percent = (this.m.reads.segmented[i] / this.m.reads.total[i]) * 100;
if (percent < 50)
d.class += " warning" ;
if (percent < 10)
......
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