mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 14:25:47 +02:00
fix(announce): fixed anounce score Math.around .toFixed(2)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
var path = require('path'),
|
||||
config = require(path.resolve('./config/config')),
|
||||
logger = require('./logger'),
|
||||
dataLog = require(path.resolve('./config/lib/data-log')),
|
||||
common = require(path.resolve('./config/lib/common')),
|
||||
mongoose = require('mongoose'),
|
||||
@@ -21,6 +22,7 @@ var scoreConfig = config.meanTorrentConfig.score;
|
||||
* @param value
|
||||
*/
|
||||
module.exports.update = function (req, user, action, value, writeLog = true) {
|
||||
logger.info('value=' + value);
|
||||
var v = value || action.value;
|
||||
|
||||
if (action.enable) {
|
||||
|
||||
Reference in New Issue
Block a user