Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Log the data looping.

  • Loading branch information...
commit 86084c9035f81eb34471561bc3d840221854bdf3 1 parent 2fb264e
@dustin dustin authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 replay.go
View
8 replay.go
@@ -85,8 +85,14 @@ func replayFile(replaySpeed float64, path string) {
rs := &replaySource{json.NewDecoder(g)}
a := &replayAction{}
- r.Run(rs, a)
+ toff := r.Run(rs, a)
+ tlbl := "early"
+ if int64(toff) < 0 {
+ tlbl = "late"
+ toff = 0 - toff
+ }
+ log.Printf("Finished %v %s.", toff, tlbl)
}
func startReplay(replaySpeed float64, path string) {
Please sign in to comment.
Something went wrong with that request. Please try again.