-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Network): add table view #1622
Conversation
1497f98
to
34a230c
Compare
digits = ''; | ||
} | ||
if (digits.length >= precision) { | ||
return Math.round(Number(value)); | ||
return Number(Number(value).toFixed(0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Math.round(0.5) = 1
Math.round(-0.5) = -0
Use toFixed
to prevent it
df19502
to
0142e07
Compare
0142e07
to
14650fe
Compare
export function prepareClockSkewValue(value: string | number) { | ||
const valueMs = parseUsToMs(value, 1); | ||
// Add + sign to positive values, do not add + to values that displayed as 0 | ||
const sign = Number(valueMs) <= 0 ? '' : '+'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we use numeral
formats for this? Like '+0,0'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #1602
Stand: https://nda.ya.ru/t/p6L2nqSM79fDT5
You need to turn on setting "Enable network table"
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Bundle Size: 🔺
Current: 66.10 MB | Main: 66.07 MB
Diff: +0.03 MB (0.05%)
ℹ️ CI Information