Fix initial download counter

This commit is contained in:
2022-02-08 22:24:14 +01:00
parent dc680f7efd
commit 13c1c6a262

View File

@@ -25,7 +25,7 @@ let update_stats = async id => {
if (file.size === 0) {
downloads = file.downloads
} else {
downloads = Math.round(file.bandwidth_used / file.size)
downloads = Math.round((file.bandwidth_used + file.bandwidth_used_paid) / file.size)
}
size = file.size