Commit f5495c57 authored by Geoff Simmons's avatar Geoff Simmons

Whitespace OCD.

parent 5e4091f1
......@@ -176,7 +176,7 @@ function format(cell, val) {
function getD9ns() {
var ws = new WebSocket(addr + "/d9ns")
ws.onmessage = function (evt) {
ws.onmessage = function (evt) {
var d9ns = JSON.parse(evt.data)
for (i = 0; i < d9ns.length; i++) {
var row = tbody.insertRow(i)
......@@ -219,7 +219,7 @@ function getD9ns() {
function getStats() {
var ws = new WebSocket(addr + "/stats")
ws.onmessage = function (evt) {
ws.onmessage = function (evt) {
var stats = JSON.parse(evt.data)
var row = document.getElementById(stats.name)
var cells = row.cells
......@@ -259,7 +259,7 @@ function format_hitrate(id, val) {
function getHitrate() {
var ws = new WebSocket(addr + "/hitrate")
ws.onmessage = function (evt) {
ws.onmessage = function (evt) {
var stats = JSON.parse(evt.data)
format_hitrate("hitrate10", stats.avg10)
format_hitrate("hitrate100", stats.avg100)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment