Skip to content

Commit b53bd38

Browse files
committed
Bump SpeedCurve plugin
1 parent 0279f4f commit b53bd38

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
}
7272
</script>
7373

74-
<script src=/js/obs.speedcurve.js?v=0007 type=module></script>
74+
<script src=/js/obs.speedcurve.js?v=0008 type=module></script>

js/obs.speedcurve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
Number.isFinite(encodedBodySize) &&
129129
encodedBodySize > 0
130130
) {
131-
const compressionDelta = 1 - encodedBodySize / decodedBodySize;
131+
const compressionDelta = Math.round((1 - encodedBodySize / decodedBodySize) * 100) / 100;
132132
if (Number.isFinite(compressionDelta)) {
133133
lux.addData('compressionDelta', compressionDelta);
134134
}

0 commit comments

Comments
 (0)