mirror of
https://github.com/dragonflydb/dragonfly
synced 2024-11-21 15:11:20 +00:00
chore: small replayer fixes (#3081)
This commit is contained in:
parent
42500c3d1e
commit
fd5ece09fb
@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"math"
|
||||
"os"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
@ -108,7 +107,7 @@ func (w *FileWorker) Run(file string, wg *sync.WaitGroup) {
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("Could not parse records!")
|
||||
log.Fatalf("Could not parse records for file %s: %v", file, err)
|
||||
}
|
||||
|
||||
for _, client := range clients {
|
||||
@ -139,7 +138,7 @@ func RenderTable(area *pterm.AreaPrinter, files []string, workers []FileWorker)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
files := os.Args[1:]
|
||||
files := flag.Args()
|
||||
|
||||
timeOffset := time.Now().Add(500 * time.Millisecond).Sub(DetermineBaseTime(files))
|
||||
fmt.Println("Offset -> ", timeOffset)
|
||||
|
Loading…
Reference in New Issue
Block a user