fix: fixed replay time computation using actual dates instead of the assumption of one frame per second

This commit is contained in:
evilsocket 2019-03-30 13:59:08 +01:00
parent 50d01429cd
commit 54116f7fbe
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 45 additions and 2 deletions

View file

@ -36,7 +36,7 @@ func (mod *RestAPI) setAuthFailed(w http.ResponseWriter, r *http.Request) {
func (mod *RestAPI) toJSON(w http.ResponseWriter, o interface{}) {
w.Header().Set("Content-Type", "application/json")
if err := json.NewEncoder(w).Encode(o); err != nil {
fmt.Printf("error while encoding object to JSON: %v\n", err)
mod.Warning("error while encoding object to JSON: %v", err)
}
}