Skip to content

Commit

Permalink
Fix download file traffic statistics error
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Mar 11, 2024
1 parent b2bd7b7 commit c15a2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileserver/fileop.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func doFileRange(rsp http.ResponseWriter, r *http.Request, repo *repomgr.Repo, f
if operation == "download-link" {
oper = "link-file-download"
}
sendStatisticMsg(repo.StoreID, user, oper, file.FileSize)
sendStatisticMsg(repo.StoreID, user, oper, end-start+1)

return nil
}
Expand Down

0 comments on commit c15a2af

Please sign in to comment.