feat: add connections page, rename dashboard page to overview

This commit is contained in:
2026-08-23 20:01:41 +08:00
parent ba65c43183
commit e3f575096b
11 changed files with 1416 additions and 34 deletions
+4 -1
View File
@@ -29,7 +29,10 @@ export function formatPPS(pps?: number): string {
* @param nanoDelay 纳秒 (ns)
*/
export function formatNanoDelay(nanoDelay?: number): string {
if (nanoDelay === undefined || nanoDelay === null || isNaN(nanoDelay) || nanoDelay <= 0) {
if (nanoDelay === undefined || nanoDelay === null || isNaN(nanoDelay)) {
return 'NaN'
}
if (nanoDelay <= 0) {
return '0 ns'
}
if (nanoDelay >= 1_000_000_000) {