fix: logging

This commit is contained in:
Mateusz Pstrucha committed 2021-11-03 23:48:59 +01:00
1 parent 20a53744f7
commit f5cde7a24c
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -87,8 +87,6 @@ function Info({ top }) {
setModalReport(false)
}
console.log(track.stats)
const total = track.stats.total,
percent = total > 0 ? (track.stats.up / total) * 100 : 50
+2 -2
View File
@@ -23,10 +23,10 @@ function open() {
socket.onmessage = (e) => {
let data = JSON.parse(e.data)
console.debug(data)
if (!Array.isArray(data)) data = [data]
console.debug(data.map(({ cat }) => cat).join(' '), data)
for (let chunk of data) {
let category = events[chunk.cat]
if (category)