Permalink
Browse files

Log the data looping.

  • Loading branch information...
1 parent 2fb264e commit 86084c9035f81eb34471561bc3d840221854bdf3 @dustin dustin committed Jun 7, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 replay.go
View
@@ -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) {

0 comments on commit 86084c9

Please sign in to comment.