Skip to content

[BUG]unnecessary check for slidingWindowMetric.intervalInMs #133

@novoland

Description

@novoland

Issue Description

Type: bug report

Describe what happened

As SlidingWindowMetric is designed as a VIEW to provide recent stats for a leapArray, the check below is unnecessary:

if parentIntervalInMs%intervalInMs != 0 {
		panic(fmt.Sprintf("SlidingWindowMetric's intervalInMs(%d) is not divisible by real BucketLeapArray's intervalInMs(%d).", intervalInMs, parentIntervalInMs))
	}

Describe what you expected to happen

remove the check

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/metricsIssue related to metrics and monitoringkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions