no double whitespace

This commit is contained in:
AdrianLxM 2018-03-05 20:50:21 +01:00
parent 0818f3b419
commit 414f92bdf8

View file

@ -325,13 +325,13 @@ public class TemporaryBasal implements Interval {
if(profile != null) { if(profile != null) {
double basal = profile.getBasal(); double basal = profile.getBasal();
if(basal != 0){ if(basal != 0){
return Math.round(rate*100d/basal) + "% "; return Math.round(rate*100d/basal) + "%";
} }
} }
} }
return DecimalFormatter.to2Decimal(rate) + "U/h "; return DecimalFormatter.to2Decimal(rate) + "U/h";
} else { // percent } else { // percent
return percentRate + "% "; return percentRate + "%";
} }
} }