fixed lint issues
This commit is contained in:
parent
b67fe48f72
commit
519d24722e
12 changed files with 54 additions and 46 deletions
|
|
@ -17,7 +17,7 @@ export function ProxyStatsCard({ stats }: ProxyStatsCardProps) {
|
|||
: 0;
|
||||
|
||||
const formatDate = (dateString?: string) => {
|
||||
if (!dateString) return 'Never';
|
||||
if (!dateString) {return 'Never';}
|
||||
const date = new Date(dateString);
|
||||
return date.toLocaleString();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export interface CacheStats {
|
|||
evictedKeys?: number;
|
||||
expiredKeys?: number;
|
||||
};
|
||||
info?: Record<string, any>;
|
||||
info?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface QueueStats {
|
||||
|
|
@ -57,7 +57,7 @@ export interface DatabaseStats {
|
|||
waiting?: number;
|
||||
max: number;
|
||||
};
|
||||
stats?: Record<string, any>;
|
||||
stats?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface SystemHealth {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ export function formatUptime(ms: number): string {
|
|||
const hours = Math.floor(minutes / 60);
|
||||
const days = Math.floor(hours / 24);
|
||||
|
||||
if (days > 0) return `${days}d ${hours % 24}h`;
|
||||
if (hours > 0) return `${hours}h ${minutes % 60}m`;
|
||||
if (minutes > 0) return `${minutes}m ${seconds % 60}s`;
|
||||
if (days > 0) {return `${days}d ${hours % 24}h`;}
|
||||
if (hours > 0) {return `${hours}h ${minutes % 60}m`;}
|
||||
if (minutes > 0) {return `${minutes}m ${seconds % 60}s`;}
|
||||
return `${seconds}s`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue