mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Clean current output file name (#304)
This commit is contained in:
committed by
Leonid Bugaev
parent
d0e1858eb3
commit
2c49556b2e
+2
-2
@@ -11,8 +11,8 @@ import (
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
var dateFileNameFuncs = map[string]func() string{
|
||||
@@ -170,7 +170,7 @@ func (o *FileOutput) filename() string {
|
||||
}
|
||||
|
||||
func (o *FileOutput) updateName() {
|
||||
o.currentName = o.filename()
|
||||
o.currentName = filepath.Clean(o.filename())
|
||||
}
|
||||
|
||||
func (o *FileOutput) Write(data []byte) (n int, err error) {
|
||||
|
||||
Reference in New Issue
Block a user