Update collectHifiStats.js

Clears the current batch after we send it to the endpoint.
This commit is contained in:
James B. Pollack 2015-09-26 07:09:41 -07:00
parent a820682816
commit b254353b38

View file

@ -90,4 +90,5 @@ function sendBatchToEndpoint(batch) {
var req = new XMLHttpRequest();
req.open("POST", ENDPOINT_URL, false);
req.send(JSON.stringify(batch));
}
batch = [];
}