Cleanup output
This commit is contained in:
parent
de9e412451
commit
23b1dbeb82
2
main.ts
2
main.ts
|
@ -29,10 +29,8 @@ async function meansToAnEnd(conn: Deno.Conn) {
|
||||||
const a1 = bs.read.int32();
|
const a1 = bs.read.int32();
|
||||||
const a2 = bs.read.int32();
|
const a2 = bs.read.int32();
|
||||||
if (queryChar == "I") {
|
if (queryChar == "I") {
|
||||||
console.log(conn.remoteAddr, "Pushing I:", [a1, a2]);
|
|
||||||
prices.push([a1, a2]);
|
prices.push([a1, a2]);
|
||||||
} else if (queryChar == "Q") {
|
} else if (queryChar == "Q") {
|
||||||
console.log(conn.remoteAddr, "Querying:", a1, a2);
|
|
||||||
let numMatches = 0;
|
let numMatches = 0;
|
||||||
let sum = 0;
|
let sum = 0;
|
||||||
for (const [ts, price] of prices) {
|
for (const [ts, price] of prices) {
|
||||||
|
|
Loading…
Reference in a new issue