Cleanup output

This commit is contained in:
Daniel Flanagan 2022-09-26 23:54:50 -05:00
parent de9e412451
commit 23b1dbeb82

View file

@ -29,10 +29,8 @@ async function meansToAnEnd(conn: Deno.Conn) {
const a1 = bs.read.int32();
const a2 = bs.read.int32();
if (queryChar == "I") {
console.log(conn.remoteAddr, "Pushing I:", [a1, a2]);
prices.push([a1, a2]);
} else if (queryChar == "Q") {
console.log(conn.remoteAddr, "Querying:", a1, a2);
let numMatches = 0;
let sum = 0;
for (const [ts, price] of prices) {