// Constants.
var JSON_FILENAME = '/srv/analysis.sesse.net/www/analysis.json';
var HISTORY_TO_KEEP = 5;
+var MINIMUM_VERSION = null;
// If set to 1, we are already processing a JSON update and should not
// start a new one. If set to 2, we are _also_ having one in the queue.
'Vary': 'Accept-Encoding',
};
+ if (MINIMUM_VERSION) {
+ headers['X-RGMV'] = MINIMUM_VERSION;
+ }
+
if (accept_gzip) {
headers['Content-Length'] = this_json.gzip.length;
headers['Content-Encoding'] = 'gzip';
var ims = (u.query)['ims'];
var unique = (u.query)['unique'];
- console.log((new Date).getTime()*1e-3 + " " + request.url);
+ console.log(((new Date).getTime()*1e-3).toFixed(3) + " " + request.url);
if (u.pathname === '/override-num-viewers') {
handle_viewer_override(request, u, response);
return;