public override string GetModuleInfo() { if (reliabilityCurve != null) { // core is not yet available here string mtbfMin = TestFlightUtil.FailureRateToMTBFString(GetBaseFailureRate(reliabilityCurve.minTime), TestFlightUtil.MTBFUnits.SECONDS, false, 999); string mtbfMax = TestFlightUtil.FailureRateToMTBFString(GetBaseFailureRate(reliabilityCurve.maxTime), TestFlightUtil.MTBFUnits.SECONDS, false, 999); return(String.Format("MTBF at 0 data: <color=#859900ff>{0}</color>\nMTBF at max data: <color=#859900ff>{1}</color>", mtbfMin, mtbfMax)); } return(base.GetModuleInfo()); }
public void FailureRateToMTBFString(double failureRate, TestFlightUtil.MTBFUnits units, bool shortForm, int maximum, out string output) { TestFlightUtil.FailureRateToMTBFString(failureRate, units, shortForm, maximum, out output); }
public string FailureRateToMTBFString(double failureRate, TestFlightUtil.MTBFUnits units, bool shortForm, int maximum) { return(TestFlightUtil.FailureRateToMTBFString(failureRate, units, shortForm, maximum)); }