mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 20:21:01 +01:00
fix(score): new ratio of score
This commit is contained in:
6
config/env/torrents.js
vendored
6
config/env/torrents.js
vendored
@@ -647,8 +647,8 @@ module.exports = {
|
||||
content: 'SEED_UP_DOWNLOAD',
|
||||
additionSize: 1024 * 1024 * 1024 * 10, //10G
|
||||
additionSize_str: '10G',
|
||||
perlSize: 1024 * 1024 * 1024, //1G
|
||||
perlSize_str: '1G',
|
||||
perlSize: 1024 * 1024 * 1024 * 5, //5G
|
||||
perlSize_str: '5G',
|
||||
|
||||
uploadValue: 1,
|
||||
uploadEnable: true,
|
||||
@@ -665,7 +665,7 @@ module.exports = {
|
||||
content: 'SEED_TIMED',
|
||||
additionTime: 60 * 60 * 1000,
|
||||
additionTime_str: '1h',
|
||||
timedValue: 0.5,
|
||||
timedValue: 1,
|
||||
vipRatio: 1.5,
|
||||
|
||||
enable: true
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
Vip user extra adition: ratio of %(scoreConfig.action.seedUpDownload.vipRatio).2f
|
||||
|
||||
Examples:
|
||||
for 40G torrent, the size addition ratio is 2, announce uploaded 10G and downloaded 15G,
|
||||
none vip user get uploaded scores: 2 * 1 * 10 = 20, downloaded scores: 2 * 0.5 * 15 = 15.
|
||||
vip user get uploaded scores: 20 * 1.5 = 30, downloaded scores: 15 * 1.5 = 22.5.
|
||||
for 40G torrent, the size addition ratio is 2, announce uploaded 20G and downloaded 10G,
|
||||
none vip user get uploaded scores: 2 * 1 * 4 = 8, downloaded scores: 2 * 0.5 * 2 = 2.
|
||||
vip user get uploaded scores: 8 * 1.5 = 12, downloaded scores: 2 * 1.5 = 3.
|
||||
```
|
||||
* Seed uploaders calculate the upload scores of `* %(scoreConfig.action.seedUpDownload.uploaderRatio).2f`.
|
||||
* In the seeding state, the seeding scores will be get from the seeding time. For every seed, `%(scoreConfig.action.seedTimed.timedValue).2f` scores per `%(scoreConfig.action.seedTimed.additionTime_str)s`, vip user extra addition ratio is `%(scoreConfig.action.seedTimed.vipRatio).2f`.
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
Vip 使用者額外加成係數: %(scoreConfig.action.seedUpDownload.vipRatio).2f 倍。
|
||||
|
||||
舉例:
|
||||
種子體積 40G, 則體積加成係數為 2, 假設本次上報上傳量為 10G 下載量為 15G, 則:
|
||||
非 Vip 使用者獲得上傳積分: 2 * 1 * 10 = 20, 下載積分: 2 * 0.5 * 15 = 15。
|
||||
Vip 使用者獲得上傳積分: 20 * 1.5 = 30, 下載積分: 15 * 1.5 = 22.5。
|
||||
種子體積 40G, 則體積加成係數為 2, 假設本次上報上傳量為 20G 下載量為 10G, 則:
|
||||
非 Vip 使用者獲得上傳積分: 2 * 1 * 4 = 8, 下載積分: 2 * 0.5 * 2 = 2。
|
||||
Vip 使用者獲得上傳積分: 8 * 1.5 = 12, 下載積分: 2 * 1.5 = 3。
|
||||
```
|
||||
* 種子發布者按 `%(scoreConfig.action.seedUpDownload.uploaderRatio).2f` 倍計算上傳量積分。
|
||||
* 在做種狀態下,將會獲得由保種時間帶來的保種積分, 每個種子每 `%(scoreConfig.action.seedTimed.additionTime_str)s` 獲得 `%(scoreConfig.action.seedTimed.timedValue).2f` 積分,Vip 使用者額外加成係數為 `%(scoreConfig.action.seedTimed.vipRatio).2f`。
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
Vip 用户额外加成系数: %(scoreConfig.action.seedUpDownload.vipRatio).2f 倍。
|
||||
|
||||
举例:
|
||||
种子体积 40G, 则体积加成系数为 2, 假设本次上报上传量为 10G 下载量为 15G, 则:
|
||||
非 Vip 用户获得上传积分: 2 * 1 * 10 = 20, 下载积分: 2 * 0.5 * 15 = 15。
|
||||
Vip 用户获得上传积分: 20 * 1.5 = 30, 下载积分: 15 * 1.5 = 22.5。
|
||||
种子体积 40G, 则体积加成系数为 2, 假设本次上报上传量为 20G 下载量为 10G, 则:
|
||||
非 Vip 用户获得上传积分: 2 * 1 * 4 = 8, 下载积分: 2 * 0.5 * 2 = 2。
|
||||
Vip 用户获得上传积分: 8 * 1.5 = 12, 下载积分: 2 * 1.5 = 3。
|
||||
```
|
||||
* 种子发布者按 `%(scoreConfig.action.seedUpDownload.uploaderRatio).2f` 倍计算上传量积分。
|
||||
* 在做种状态下,将会获得由保种时间带来的保种积分, 每个种子每 `%(scoreConfig.action.seedTimed.additionTime_str)s` 获得 `%(scoreConfig.action.seedTimed.timedValue).2f` 积分,Vip 用户额外加成系数为 `%(scoreConfig.action.seedTimed.vipRatio).2f`。
|
||||
|
||||
Reference in New Issue
Block a user