Skip to content

Commit 826616e

Browse files
committed
其他:调整分片文件名格式
1 parent b5ce41b commit 826616e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (w *writer) open() error {
6767

6868
var err error
6969
time.Sleep(time.Microsecond) // keep unique
70-
name := path.Join(Config.Path, fmt.Sprintf("%013d.data", time.Now().UnixMicro()))
70+
name := path.Join(Config.Path, fmt.Sprintf("%016d.data", time.Now().UnixMicro()))
7171
if w.file, err = os.OpenFile(name, os.O_CREATE|os.O_WRONLY, Config.FilePerm); err != nil {
7272
return err
7373
}

0 commit comments

Comments
 (0)