mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
88360350a0
Delete the old monolithic openflare-server implementation and rename Wavelet/ to openflare-server/ to complete the migration consolidation. Update CI workflows, agent Dockerfiles, and deployment docs for the new layout (frontend/, docker/Dockerfile).
15 lines
347 B
TypeScript
15 lines
347 B
TypeScript
export {
|
|
calculateNiceAxisMax,
|
|
formatBytes,
|
|
formatBytesPerSecond,
|
|
formatCompactNumber,
|
|
formatPercent,
|
|
} from '@/lib/utils/metrics';
|
|
|
|
export function formatTrendHour(value: string) {
|
|
const date = new Date(value);
|
|
if (Number.isNaN(date.getTime())) {
|
|
return '—';
|
|
}
|
|
return `${date.getHours().toString().padStart(2, '0')}:00`;
|
|
} |