✨ feat: add connections page, rename dashboard page to overview
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user