Skip to content

Commit

Permalink
seconds to millis
Browse files Browse the repository at this point in the history
  • Loading branch information
jh-bate committed Dec 12, 2023
1 parent edb2c14 commit 0398ef0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/types/device/override/settings/pump/pump.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
BasalRateScaleFactorMinimum = 0.1
CarbohydrateRatioScaleFactorMaximum = 10.0
CarbohydrateRatioScaleFactorMinimum = 0.1
DurationMaximum = 604800 // 7 days in seconds
DurationMaximum = 604800000 // 7 days in milliseconds
DurationMinimum = 0
InsulinSensitivityScaleFactorMaximum = 10.0
InsulinSensitivityScaleFactorMinimum = 0.1
Expand Down
2 changes: 1 addition & 1 deletion data/types/device/override/settings/pump/pump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var _ = Describe("Pump", func() {
})

It("DurationMaximum is expected", func() {
Expect(dataTypesDeviceOverrideSettingsPump.DurationMaximum).To(Equal(604800))
Expect(dataTypesDeviceOverrideSettingsPump.DurationMaximum).To(Equal(604800000))
})

It("DurationMinimum is expected", func() {
Expand Down
2 changes: 1 addition & 1 deletion data/types/settings/pump/override_preset.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
BasalRateScaleFactorMinimum = 0.1
CarbohydrateRatioScaleFactorMaximum = 10.0
CarbohydrateRatioScaleFactorMinimum = 0.1
DurationMaximum = 604800 // 7 days in seconds
DurationMaximum = 604800000 // 7 days in milliseconds
DurationMinimum = 0
InsulinSensitivityScaleFactorMaximum = 10.0
InsulinSensitivityScaleFactorMinimum = 0.1
Expand Down
2 changes: 1 addition & 1 deletion data/types/settings/pump/override_preset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var _ = Describe("OverridePreset", func() {
})

It("DurationMaximum is expected", func() {
Expect(dataTypesSettingsPump.DurationMaximum).To(Equal(604800))
Expect(dataTypesSettingsPump.DurationMaximum).To(Equal(604800000))
})

It("DurationMinimum is expected", func() {
Expand Down

0 comments on commit 0398ef0

Please sign in to comment.