Fix initial download counter
This commit is contained in:
1 parent
dc680f7efd
commit
13c1c6a262
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user