blob: e12fa4c5ed3dd0982169a19291fd81ec31c16f73 [file] [log] [blame]
SELECT
ts,
lead(ts, 1, ts) OVER (PARTITION BY name ORDER BY ts) - ts AS dur,
value
FROM counters
WHERE ref = 1;