Permalink
Browse files

use ev.Seqn instead of skipping Nop txns

  • Loading branch information...
1 parent e97c2ee commit 1f236c7a6deea911c9426b0c11b6fee6e4fc458e @mreiferson mreiferson committed Feb 27, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 web/web.go
View
6 web/web.go
@@ -88,7 +88,7 @@ func evServer(w http.ResponseWriter, r *http.Request) {
break
}
wevs <- ev
- rev = ev.Rev
+ rev = ev.Seqn
}
close(wevs)
}()
@@ -113,7 +113,9 @@ func viewHtml(w http.ResponseWriter, r *http.Request) {
func statsHtml(w http.ResponseWriter, r *http.Request) {
w.Header().Set("content-type", "text/html")
- statsTpl.Execute(w, runtime.MemStats)
+ memstats := new(runtime.MemStats)
+ runtime.ReadMemStats(memstats)
+ statsTpl.Execute(w, *memstats)
}
func walk(path string, st *store.Store, ch chan store.Event) {

0 comments on commit 1f236c7

Please sign in to comment.