Fix initial download counter
This commit is contained in:
@@ -25,7 +25,7 @@ let update_stats = async id => {
|
|||||||
if (file.size === 0) {
|
if (file.size === 0) {
|
||||||
downloads = file.downloads
|
downloads = file.downloads
|
||||||
} else {
|
} else {
|
||||||
downloads = Math.round(file.bandwidth_used / file.size)
|
downloads = Math.round((file.bandwidth_used + file.bandwidth_used_paid) / file.size)
|
||||||
}
|
}
|
||||||
size = file.size
|
size = file.size
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user