w3c / compute-pressure

A web API proposal that provides information about available compute capacity
https://www.w3.org/TR/compute-pressure/
Other
69 stars 10 forks source link

data delivery: Use right time-related variable in passes rate test check #279

Closed rakuco closed 3 months ago

rakuco commented 3 months ago

Follow-up to #274, related to #257.

The call to the "passes rate test" algorithm should use timeValue rather than timestamp: the former is what is stored in PressureRecord.[[Time]], so it makes sense to compare values that have been similarly coarsened and converted to a relative time.


Preview | Diff

arskama commented 3 months ago

LGTM

kenchris commented 3 months ago

LGTM too