fix(announce): fixed anounce score Math.around .toFixed(2)

This commit is contained in:
OldHawk
2018-05-06 21:27:57 +08:00
parent 428ff68d3f
commit dabd79824d

View File

@@ -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) {