Switch to using milliseconds as the unit of time

This commit is contained in:
Kelvin Ly 2023-05-15 10:45:07 -04:00
parent 0ca4da4b6c
commit 18ffe01347
1 changed files with 2 additions and 1 deletions

View File

@ -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)