diff options
| author | zousar <[email protected]> | 2025-04-11 00:25:20 -0600 |
|---|---|---|
| committer | zousar <[email protected]> | 2025-04-11 00:25:20 -0600 |
| commit | afda5c6345f4c0b274ae8084bfbd371169791c57 (patch) | |
| tree | ded3572c961377625cb516ed5b8374d2e2cbd99c /src/zenserver/frontend/html/util/widgets.js | |
| parent | 5.6.5 (diff) | |
| download | zen-afda5c6345f4c0b274ae8084bfbd371169791c57.tar.xz zen-afda5c6345f4c0b274ae8084bfbd371169791c57.zip | |
Avoid signed overflow using BigInt
Bias for use of BigInt when consuming integer fields in compact binary to avoid values showing up as negative due to overflow on the Number type.
Diffstat (limited to 'src/zenserver/frontend/html/util/widgets.js')
| -rw-r--r-- | src/zenserver/frontend/html/util/widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/frontend/html/util/widgets.js b/src/zenserver/frontend/html/util/widgets.js index d4f9875cd..32a3f4d28 100644 --- a/src/zenserver/frontend/html/util/widgets.js +++ b/src/zenserver/frontend/html/util/widgets.js @@ -173,7 +173,7 @@ export class PropTable extends Table continue; } - if (friendly && typeof value == "number") + if (friendly && ((typeof value == "number") || (typeof value == "bigint"))) { if (key.indexOf("memory") >= 0) value = Friendly.kib(value); else if (key.indexOf("disk") >= 0) value = Friendly.kib(value); |