feat: average shell reload

This commit is contained in:
TrèsAbhi committed 2024-04-04 22:17:36 -05:00
1 parent 0a41ee15ed
commit 5b4c3119dd
1 file changed
+5 -1
+5 -1
View File
@@ -278,7 +278,11 @@ export default function Page() {
<Row <Row
name="Reload" name="Reload"
deltaType="lowerIsBetter" deltaType="lowerIsBetter"
value={(stats) => stats.shellReload} value={(stats) =>
stats.shellReload ??
stats.shellReloads!.reduce((a, b) => a + b, 0) /
stats.shellReloads!.length
}
display={(stats) => display={(stats) =>
stats.shellReload?.toFixed(2) ?? stats.shellReload?.toFixed(2) ??
stats stats