Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishapi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishapi
Commits
f5495c57
Commit
f5495c57
authored
Aug 18, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace OCD.
parent
5e4091f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
table.go
cmd/govarnishstat/table.go
+3
-3
No files found.
cmd/govarnishstat/table.go
View file @
f5495c57
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment