Browse Source
Merge pull request #4377 from vvlladd28/improvement/calculate-min-interval
UI: Fixed incorrect calculate minIntervalLimit
pull/4416/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
ui-ngx/src/app/core/services/time.service.ts
|
|
|
@ -79,7 +79,7 @@ export class TimeService { |
|
|
|
|
|
|
|
public boundMinInterval(min: number): number { |
|
|
|
if (isDefined(min)) { |
|
|
|
min = Math.floor(min / 1000) * 1000; |
|
|
|
min = Math.ceil(min / 1000) * 1000; |
|
|
|
} |
|
|
|
return this.toBound(min, MIN_INTERVAL, MAX_INTERVAL, MIN_INTERVAL); |
|
|
|
} |
|
|
|
|