Don't draw invalidated SMBs.

This commit is contained in:
Johannes Mockenhaupt 2018-05-01 19:23:38 +02:00
parent ee61a71181
commit 1e80ca22c6
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -274,6 +274,7 @@ public class GraphData {
for (int tx = 0; tx < treatments.size(); tx++) {
Treatment t = treatments.get(tx);
if (t.getX() < fromTime || t.getX() > endTime) continue;
if (t.isSMB && !t.isValid) continue;
t.setY(getNearestBg((long) t.getX()));
filteredTreatments.add(t);
}