aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 06:51:17 +0100
committertv <tv@krebsco.de>2026-10-31 06:51:17 +0100
commit88160e8aa273090c55103e7a92eeae9a8bdac9ed (patch)
treead1d23dafbf808dfcf1a07552e4e9a47d41ffa74 /docs
parent32c788b4d6245abebafb250b005a211fcbeac32c (diff)
calculate peer clock drift
Diffstat (limited to 'docs')
-rw-r--r--docs/openapi.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index b7c632d..d1f5935 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1366,6 +1366,10 @@ components:
oneOf:
- $ref: '#/components/schemas/Throughput'
- type: 'null'
+ clock:
+ oneOf:
+ - $ref: '#/components/schemas/ClockOffset'
+ - type: 'null'
Counter:
type: object
@@ -1433,6 +1437,18 @@ components:
type: integer
description: Time spent dormant up to the last return (the current dormancy isn't included).
+ ClockOffset:
+ type: object
+ description: How far a peer's clock is ahead of ours, from its PONGs (`measurements.md`, Per peer).
+ required: [offsetMs, withinMs]
+ properties:
+ offsetMs:
+ type: integer
+ description: Ahead of ours; behind if negative.
+ withinMs:
+ type: integer
+ description: Give or take this much (half the round trip).
+
Throughput:
type: object
required: [bytesPerSec, samples, secsAgo]