Skip to content

Commit bd2ddf9

Browse files
committed
Improve comments in device/network information
1 parent 354f853 commit bd2ddf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_layouts/default.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@
121121
return;
122122
}
123123

124-
// Categorise and bucket high-cardinality metrics.
124+
// Categorise and bucket high cardinality metrics.
125+
126+
// Convert battery to a number out of 100 and round up to the nearest 5%.
125127
function bucketBattery(level) {
126128
return level != null ? Math.min(100, Math.ceil(level * 100 / 5) * 5) : null;
127129
}

0 commit comments

Comments
 (0)