Просмотр исходного кода

Change default update interval.

Jon Mårtensson 3 лет назад
Родитель
Сommit
9ef34d365e

+ 1 - 1
FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings

@@ -1266,7 +1266,7 @@ Enact a temp Basal or a temp target */
 "Update every number of minutes:" = "Update every number of minutes:";
 
 /* Description for update interval for statistics */
-"Default is 30 minutes. How often to update and save the statistics.json and to upload last array, when enabled, to Nightscout. A lower interval than for glucose updates (5 min) is pointless." = "Default is 30 minutes. How often to update and save the statistics.json and to upload last array, when enabled, to Nightscout. A lower interval than for glucose updates (5 min) is pointless.";
+"Default is 30 minutes. How often to update and save the statistics.json and to upload last array, when enabled, to Nightscout. A lower interval than for glucose updates (5 min) is pointless." = "Default is 20 minutes. How often to update and save the statistics.json and to upload last array, when enabled, to Nightscout.";
 
 /* Duration displayed in statPanel */
 "Past 24 Hours " = "Past 24 Hours ";

+ 1 - 1
FreeAPS/Sources/Models/Preferences.swift

@@ -55,7 +55,7 @@ struct Preferences: JSON {
     var threshold_setting: Decimal = 65
     var high: Decimal = 10
     var low: Decimal = 4
-    var updateInterval: Decimal = 30
+    var updateInterval: Decimal = 20
     var overrideHbA1cUnit: Bool = false
     var displayLoops: Bool = false
 }

+ 1 - 1
FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorStateModel.swift

@@ -60,7 +60,7 @@ extension PreferencesEditor {
 
                     type: .decimal(keypath: \.updateInterval),
                     infoText: NSLocalizedString(
-                        "Default is 30 minutes. How often to update and save the statistics.json and to upload last array, when enabled, to Nightscout. A lower interval than for glucose updates (5 min) is pointless.",
+                        "Default is 20 minutes. How often to update and save the statistics.json and to upload last array, when enabled, to Nightscout.",
                         comment: "Description for update interval for statistics"
                     ),
                     settable: self