fix(metrics): fix metrics

This commit is contained in:
Juergen Kunz
2025-06-23 13:07:30 +00:00
parent cc9e76fade
commit caa15e539e
3 changed files with 110 additions and 42 deletions

View File

@ -109,4 +109,10 @@ export interface IByteTracker {
bytesOut: number;
startTime: number;
lastUpdate: number;
// Track bytes at window boundaries for rate calculation
windowSnapshots?: Array<{
timestamp: number;
bytesIn: number;
bytesOut: number;
}>;
}