Skip to content

Commit

Permalink
Fix #281
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchris committed Sep 19, 2024
1 parent 2e54dab commit fc903fb
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,6 @@ <h3>
<p>
Each [=global object=] has:
<ul>
<li>
a <dfn>current pressure state</dfn> (a string), initialized to the empty string.
</li>
<li>
a <dfn>pressure observer task queued</dfn> (a boolean), which is initially false.
</li>
Expand Down Expand Up @@ -474,7 +471,7 @@ <h3>
</li>
<li>
a <dfn>[[\ChangesCountMap]]</dfn> [=ordered map=], [=map/keyed=] on a {{PressureSource}},
representing the [=source type=] that triggered transition to the [=current pressure state=].
representing the [=source type=] that triggered transition to the current [=pressure state=].
The [=ordered map=]'s [=map/value=] is an integer representing the number of state changes in the
current observation window timeframe.
</li>
Expand Down Expand Up @@ -523,7 +520,7 @@ <h3>

<section> <h2>Contributing Factors</h2>
<p>
<dfn>Contributing factors</dfn> represent the underlying hardware metrics contributing to the [=current pressure state=]
<dfn>Contributing factors</dfn> represent the underlying hardware metrics contributing to the current [=pressure state=]
and can be [=implementation-defined=].
</p>
<p>
Expand All @@ -536,9 +533,9 @@ <h3>
<ol>
<li>
If [=implementation-defined=] low-level hardware metrics that contribute to the
[=current pressure state=] drop below or exceed an, per metric,
current [=pressure state=] drop below or exceed an, per metric,
[=implementation-defined=] threshold
for the [=current pressure state=], return true.
for the current [=pressure state=], return true.
</li>
<li>
Return false.
Expand Down Expand Up @@ -948,7 +945,7 @@ <h3>The <dfn>PressureRecord</dfn> interface</h3>
a <dfn>[[\Source]]</dfn> value of type {{PressureSource}}, which represents the current [=source type=].
</li>
<li>
a <dfn>[[\State]]</dfn> value of type {{PressureState}}, which represents the [=current pressure state=].
a <dfn>[[\State]]</dfn> value of type {{PressureState}}, which represents the current [=pressure state=].
</li>
<li>
a <dfn>[[\Time]]</dfn> value of type {{DOMHighResTimeStamp}},
Expand Down Expand Up @@ -1227,8 +1224,7 @@ <h3>Supporting algorithms</h3>
Let |record:PressureRecord| be |observer|.{{PressureObserver/[[LastRecordMap]]}}[|source|].
</li>
<li>
If |record|.{{PressureRecord/[[State]]}} is not equal to |state| and [=change in contributing factors is substantial=]
returns true, return true.
If |record|.{{PressureRecord/[[State]]}} is not equal to |state|, return true.
</li>
<li>
Return false.
Expand Down Expand Up @@ -1408,6 +1404,9 @@ <h3>Data Collection and Delivery</h3>
<li>
Otherwise:
<ol>
<li>
If [=change in contributing factors is substantial=] is false, abort these steps.
</li>
<li>
Set |state| to an [=adjusted pressure state=] calculated from
|source| and |sample|'s [=pressure source sample/data=].
Expand Down

0 comments on commit fc903fb

Please sign in to comment.