mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 08:06:19 +00:00
style(usage): clarify tooltip success rate formatting
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -122,6 +122,9 @@ function formatTooltip(params: unknown) {
|
||||
if (!point)
|
||||
return ''
|
||||
|
||||
const successRate = point.errorRate == null
|
||||
? null
|
||||
: 1 - point.errorRate
|
||||
const theme = palette.value
|
||||
|
||||
return chartTooltipContent(point.label, [
|
||||
@@ -133,7 +136,7 @@ function formatTooltip(params: unknown) {
|
||||
usageTooltipItem(t('usage.health.point.callerError'), formatCompactNumber(point.callerErrorRequests), theme.normal),
|
||||
usageTooltipItem(
|
||||
t('usage.health.serviceSuccessRate'),
|
||||
serviceSuccessRateText(point.errorRate == null ? null : 1 - point.errorRate),
|
||||
serviceSuccessRateText(successRate),
|
||||
theme.success,
|
||||
),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user