File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -341,10 +341,6 @@ func (r *MSKTopicConfigRule) getAndValidateCleanupPolicyValue(
341
341
342
342
const (
343
343
retentionTimeAttr = "retention.ms"
344
- millisInOneHour = 60 * 60 * 1000
345
- millisInOneDay = 24 * millisInOneHour
346
- millisInOneMonth = 30 * millisInOneDay
347
- millisInOneYear = 365 * millisInOneDay
348
344
// The threshold on retention time when remote storage is supported.
349
345
tieredStorageThresholdInDays = 3
350
346
tieredStorageEnableAttr = "remote.storage.enable"
Original file line number Diff line number Diff line change @@ -405,6 +405,13 @@ func round(val float64) float64 {
405
405
return math .Round (val * 10 ) / 10
406
406
}
407
407
408
+ const (
409
+ millisInOneHour = 60 * 60 * 1000
410
+ millisInOneDay = 24 * millisInOneHour
411
+ millisInOneMonth = 30 * millisInOneDay
412
+ millisInOneYear = 365 * millisInOneDay
413
+ )
414
+
408
415
func determineTimeUnits (millis int ) (float64 , string ) {
409
416
floatMillis := float64 (millis )
410
417
timeInYears := round (floatMillis / millisInOneYear )
You can’t perform that action at this time.
0 commit comments