Jon Mårtensson 3 лет назад
Родитель
Сommit
a6b5f7cc97
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      FreeAPS/Sources/APS/APSManager.swift

+ 4 - 4
FreeAPS/Sources/APS/APSManager.swift

@@ -929,10 +929,10 @@ final class BaseAPSManager: APSManager, Injectable {
             }
         }
 
-        if nr_bgs != 0  {
+        if nr_bgs != 0 {
             bg_total = bg / nr_bgs
         }
-        
+
         medianBG = medianCalculation(array: bgArray)
 
         let fullTime = glucose![0].date - glucose![endIndex].date
@@ -1143,11 +1143,11 @@ final class BaseAPSManager: APSManager, Injectable {
         let HbA1c_string = HbA1c_string_1 + string7Days + string30Days + string90Days + stringTotal
 
         var tirString =
-            "TIR (24 hours): \(roundDecimal(TIR_1, 0)) %. Time with Hypoglucemia: \(roundDecimal(hypos_1, 0)) % (< 4 / 72). Time with Hyperglucemia:  \(roundDecimal(hypers_1, 0)) % (> 10 / 180)."
+            "TIR (24 hours): \(roundDecimal(TIR_1, 0)) %. Time with Hypolycaemia: \(roundDecimal(hypos_1, 0)) % (< 4 / 72). Time with Hyperlycaemia:  \(roundDecimal(hypers_1, 0)) % (> 10 / 180)."
 
         if daysBG >= 2 {
             tirString +=
-                " Total days (\(daysBG) TIR: \(roundDecimal(TIR, 1)) %. Time with Hypoglucemia: \(roundDecimal(hypos, 1)) % (< 4 / 72). Time with Hyperglucemia: \(roundDecimal(hypers, 1)) % (> 10 / 180)."
+                " Total days (\(daysBG) TIR: \(roundDecimal(TIR, 1)) %. Time with Hypolycaemia: \(roundDecimal(hypos, 1)) % (< 4 / 72). Time with Hyperlycaemia: \(roundDecimal(hypers, 1)) % (> 10 / 180)."
         }
 
         let bgAverageString = bgString1day + bgString7Days + bgString30Days + bgString90Days + bgAverageTotalString