diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-07 12:07:23 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-07 12:07:23 +0300 |
| commit | 0a207b8a2c0629b7f1996025a40a10fbe58d05d0 (patch) | |
| tree | 17d8a98faecccbda02b98ede48adf020d5e8d2f9 /web/assets/js/model/dbinbound.js | |
| parent | 26bf693dbdc2db0222ee37615e353f7ca1fdd3c1 (diff) | |
refactor: merging all util functions into classes
Diffstat (limited to 'web/assets/js/model/dbinbound.js')
| -rw-r--r-- | web/assets/js/model/dbinbound.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/assets/js/model/dbinbound.js b/web/assets/js/model/dbinbound.js index aeae1a75..45301ddd 100644 --- a/web/assets/js/model/dbinbound.js +++ b/web/assets/js/model/dbinbound.js @@ -25,11 +25,11 @@ class DBInbound { } get totalGB() { - return toFixed(this.total / ONE_GB, 2); + return NumberFormatter.toFixed(this.total / SizeFormatter.ONE_GB, 2); } set totalGB(gb) { - this.total = toFixed(gb * ONE_GB, 0); + this.total = NumberFormatter.toFixed(gb * SizeFormatter.ONE_GB, 0); } get isVMess() { |
