diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-01-16 14:48:49 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-01-16 14:48:49 +0100 |
| commit | 025b20b5cb6f6a5ca25ac0c8895da3db047d654d (patch) | |
| tree | 2b03b8051e2e629b03124e39d6ad2f0b881f0f30 | |
| parent | d5d60d1061a714e302f62ab7f4e878900fe1ee4f (diff) | |
syz-manager: fix up commit link
| -rw-r--r-- | syz-manager/html.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/syz-manager/html.go b/syz-manager/html.go index 1de7839b0..d702dba6d 100644 --- a/syz-manager/html.go +++ b/syz-manager/html.go @@ -78,11 +78,11 @@ func (mgr *Manager) httpSummary(w http.ResponseWriter, r *http.Request) { func (mgr *Manager) httpConfig(w http.ResponseWriter, r *http.Request) { data, err := json.MarshalIndent(mgr.cfg, "", "\t") if err != nil { - http.Error(w, fmt.Sprintf("failed to decode json: %v", err), + http.Error(w, fmt.Sprintf("failed to encode json: %v", err), http.StatusInternalServerError) return } - fmt.Fprintf(w, "%v", string(data)) + w.Write(data) } func (mgr *Manager) httpSyscalls(w http.ResponseWriter, r *http.Request) { @@ -121,7 +121,7 @@ func (mgr *Manager) collectStats() []UIStat { head = "master" } stats := []UIStat{ - {Name: "revision", Value: fmt.Sprint(head[:8]), Link: "https://github.com/google/syzkaller/commits/" + head}, + {Name: "revision", Value: fmt.Sprint(head[:8]), Link: "https://github.com/google/syzkaller/commit/" + head}, {Name: "config", Value: "config", Link: "/config"}, {Name: "uptime", Value: fmt.Sprint(time.Since(mgr.startTime) / 1e9 * 1e9)}, {Name: "fuzzing", Value: fmt.Sprint(mgr.fuzzingTime / 60e9 * 60e9)}, |
