From 20833264182300f4a49615f26deee4a8468da001 Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 10 Apr 2026 09:59:35 +0400 Subject: [PATCH] fix --- apps/monitor/src/runner.rs | 8 +++++++- apps/web/src/views/detail.ejs | 16 ++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/apps/monitor/src/runner.rs b/apps/monitor/src/runner.rs index 59c98c1..e06032e 100644 --- a/apps/monitor/src/runner.rs +++ b/apps/monitor/src/runner.rs @@ -347,7 +347,13 @@ async fn run_check_async( .unwrap() .as_secs() as i64; cert_expiry_days = Some((not_after - now) / 86400); - cert_issuer = Some(cert.issuer().to_string()); + let issuer_str = cert.issuer().to_string(); + cert_issuer = Some( + issuer_str.split(", ") + .find(|p| p.starts_with("O=")) + .map(|p| p[2..].to_string()) + .unwrap_or(issuer_str) + ); } } } diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index c1b437a..9be95c9 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -721,10 +721,18 @@ const c = REGION_COLORS[pt.region] || '#6b7280'; const label = REGION_LABELS[pt.region] || pt.region; const status = pt.ping.up ? '' : ' DOWN'; - html += `
- ${label} - ${pt.ping.latency_ms}ms${status} -
`; + html += '
'; + html += '' + label + ''; + html += '' + (pt.ping.latency_ms || 0) + 'ms' + status + ''; + html += '
'; + if (pt.ping.dns_ms != null || pt.ping.tcp_ms != null || pt.ping.tls_ms != null) { + var tp = []; + if (pt.ping.dns_ms != null) tp.push('DNS ' + pt.ping.dns_ms); + if (pt.ping.tcp_ms != null) tp.push('TCP ' + pt.ping.tcp_ms); + if (pt.ping.tls_ms != null) tp.push('TLS ' + pt.ping.tls_ms); + tp.push('HTTP ' + (pt.ping.latency_ms || 0)); + html += '
' + tp.join(' / ') + ' ms
'; + } } if (result.runId) { html += `
${result.runId}
`;