修复diffMs,和offset判断

This commit is contained in:
2025-02-08 10:12:51 +08:00
parent ba4aad0ae5
commit fcf1e28fbd
3 changed files with 3 additions and 11 deletions

View File

@ -7,10 +7,7 @@ type File struct {
Url string `json:"url"`
Path string `json:"path"`
Name string `json:"name"`
DiffMs int64 `json:"diffMs"`
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
}
func (f *File) GetDiffMs() int64 {
return f.EndTime.Sub(f.StartTime).Milliseconds()
}