diff --git a/main.go b/main.go index e0c44a6..29cea99 100644 --- a/main.go +++ b/main.go @@ -64,7 +64,7 @@ func main() { return outRows[i].NumberQueries < outRows[j].NumberQueries }) - f, err := os.OpenFile(*outFile, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0600) + f, err := os.OpenFile(*outFile, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600) if err != nil { log.Fatalf("failed to open output file '%s': %v", *outFile, err) }