refactor: improved performance for old profiles

This commit is contained in:
zhom
2025-11-30 17:34:04 +04:00
parent e16512576c
commit c40f023d41
5 changed files with 272 additions and 128 deletions
+14
View File
@@ -309,3 +309,17 @@ export interface TrafficSnapshot {
current_bytes_received: number;
recent_bandwidth: BandwidthDataPoint[];
}
export interface FilteredTrafficStats {
profile_id?: string;
session_start: number;
last_update: number;
total_bytes_sent: number;
total_bytes_received: number;
total_requests: number;
bandwidth_history: BandwidthDataPoint[];
period_bytes_sent: number;
period_bytes_received: number;
domains: Record<string, DomainAccess>;
unique_ips: string[];
}