if (!Double.isNaN(min) && !Double.isNaN(max) && min >= max) {
Util.error(this, "Min value must be less than max value");
return null;
}
try {
return new DsDef(name, type, heartbeat, min, max);
}
catch (RrdException e) {
// should not be hear ever!
Util.error(this, e);
return null;