Switch to using milliseconds as the unit of time
This commit is contained in:
parent
0ca4da4b6c
commit
18ffe01347
|
@ -41,7 +41,8 @@ func dumpData(db *sql.DB, multiplier int64) func(http.ResponseWriter, *http.Requ
|
|||
return
|
||||
}
|
||||
offset := int64(count) * multiplier
|
||||
t := now - offset
|
||||
t := now*1000 - offset
|
||||
log.Println("req start ", t)
|
||||
msg, err := s.GetRows(db, t)
|
||||
if err != nil {
|
||||
w.WriteHeader(500)
|
||||
|
|
Loading…
Reference in New Issue