1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

refactor(app): migrate replicas form section [EE-6238] (#10705)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-01-03 10:27:38 +13:00 committed by GitHub
parent 58da51f767
commit 6da71661d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 142 additions and 66 deletions

View file

@ -14,7 +14,7 @@ export function toViewModelMemory(value = 0): number {
return value / 1024 / 1024;
}
function round(value: number, decimals: number) {
export function round(value: number, decimals: number) {
const tenth = 10 ** decimals;
return Math.round((value + Number.EPSILON) * tenth) / tenth;
}