Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1315314] If the calculated baseline has any NaN values, do not st…
Browse files Browse the repository at this point in the history
…ore it

(cherry picked from commit 7f8b783056ca4dd190ec67ad72a847d67d863aca)
  • Loading branch information
Michael Burman authored and Simeon Pinder committed Jan 27, 2017
1 parent 7c588ed commit f85e22b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -335,6 +335,11 @@ public void saveNewBaselines(Set<Integer> scheduleIds, Map<Integer, MeasurementB
MeasurementBaseline baseline = baselines.get(schedule.getId());
baseline.setScheduleId(schedule.getId());
baseline.setSchedule(schedule); // this sets the reverse, owning relationship as well

if(baseline.getMax() == Double.NaN || baseline.getMin() == Double.NaN || baseline.getMean() == Double.NaN) {
continue;
}

entityManager.persist(baseline);
}
}
Expand Down

0 comments on commit f85e22b

Please sign in to comment.