.
This commit is contained in:
1 parent
d2c03d155d
commit
db60190e19
13 files changed
+505
-38
No files matched your search
@@ -13,6 +13,8 @@ export interface RawClockObservation {
|
||||
serverDateHeader?: string
|
||||
remoteIp: string
|
||||
reusedSocket: boolean
|
||||
protocol?: 'http/1.1' | 'h2'
|
||||
connectionId?: string
|
||||
ageHeader?: string
|
||||
viaHeader?: string
|
||||
cacheHeader?: string
|
||||
@@ -50,6 +52,8 @@ export function observationToSample(observation: RawClockObservation): ClockSamp
|
||||
offsetMaxMs: finite(serverDateMs) + 1_000 - observation.sentAtMs,
|
||||
remoteIp: observation.remoteIp,
|
||||
reusedSocket: observation.reusedSocket,
|
||||
protocol: observation.protocol,
|
||||
connectionId: observation.connectionId,
|
||||
accepted: !rejectionReason,
|
||||
rejectionReason,
|
||||
}
|
||||
@@ -196,6 +200,9 @@ export function estimateClock(
|
||||
calibrationApplied: false,
|
||||
calibrationSettings: settings,
|
||||
remoteIp: '',
|
||||
protocol: undefined,
|
||||
connectionId: undefined,
|
||||
connectionReused: undefined,
|
||||
quality: 'unavailable',
|
||||
warning: '유효한 서버시간 표본이 없습니다.',
|
||||
samples: allRecent,
|
||||
@@ -264,6 +271,9 @@ export function estimateClock(
|
||||
calibrationApplied,
|
||||
calibrationSettings: settings,
|
||||
remoteIp: latest.remoteIp,
|
||||
protocol: latest.protocol,
|
||||
connectionId: latest.connectionId,
|
||||
connectionReused: latest.reusedSocket,
|
||||
quality,
|
||||
warning,
|
||||
samples: allRecent,
|
||||
|
||||
Reference in new issue
Block a user