diff --git a/internal/metrics/collector.go b/internal/metrics/collector.go index 11723c5..ad9650e 100644 --- a/internal/metrics/collector.go +++ b/internal/metrics/collector.go @@ -202,13 +202,13 @@ func FormatUptime(d time.Duration) string { seconds := int(d.Seconds()) % 60 if days > 0 { - return fmt.Sprintf("%d天%d小时%d分钟%d秒", days, hours, minutes, seconds) + return fmt.Sprintf("%d天%d时%d分%d秒", days, hours, minutes, seconds) } if hours > 0 { - return fmt.Sprintf("%d小时%d分钟%d秒", hours, minutes, seconds) + return fmt.Sprintf("%d时%d分%d秒", hours, minutes, seconds) } if minutes > 0 { - return fmt.Sprintf("%d分钟%d秒", minutes, seconds) + return fmt.Sprintf("%d分%d秒", minutes, seconds) } return fmt.Sprintf("%d秒", seconds) } diff --git a/web/app/dashboard/page.tsx b/web/app/dashboard/page.tsx index 8f9d466..67beea6 100644 --- a/web/app/dashboard/page.tsx +++ b/web/app/dashboard/page.tsx @@ -239,7 +239,16 @@ export default function DashboardPage() { {(metrics.top_paths || []).map((path, index) => ( - {path.path} + + + {path.path} + + {path.request_count} {path.error_count} {path.avg_latency} @@ -275,7 +284,16 @@ export default function DashboardPage() { .map((req, index) => ( {formatDate(req.Time)} - {req.Path} + + + {req.Path} + +