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:
parent
58da51f767
commit
6da71661d5
8 changed files with 142 additions and 66 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue