From fd932e21fa4effb0dc5f08ba756e94bc664a36f7 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 10 May 2024 19:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/md5/md5-api.js | 4 ++-- ica-rs/plugins/md5/md5-api.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ica-rs/plugins/md5/md5-api.js b/ica-rs/plugins/md5/md5-api.js index b8ebdc3..233b75a 100644 --- a/ica-rs/plugins/md5/md5-api.js +++ b/ica-rs/plugins/md5/md5-api.js @@ -184,7 +184,7 @@ function wrap_any(names, round) { // } else if ('score' in result) { } else { - win_rate_2 = (result.score * 100 / round).toFixed(2); + win_rate_2 = (result.score * 10000 / round).toFixed(2); output_str_2 = "\u5206\u6570:|".concat(win_rate_2, "%|(").concat(round, "\u8F6E)"); if (round > 1000) { output_datas_2 = []; @@ -214,7 +214,7 @@ function main() { fs = require("fs"); path = require("path"); names = fs.readFileSync(path.resolve(__dirname, "input.txt"), "utf-8"); - return [4 /*yield*/, wrap_any(names, 1000)]; + return [4 /*yield*/, wrap_any(names, 10000)]; case 1: result = _a.sent(); console.log(result); diff --git a/ica-rs/plugins/md5/md5-api.ts b/ica-rs/plugins/md5/md5-api.ts index 1e7bc5b..efacc03 100644 --- a/ica-rs/plugins/md5/md5-api.ts +++ b/ica-rs/plugins/md5/md5-api.ts @@ -167,7 +167,7 @@ async function wrap_any(names: string, round: number): Promise { // } else if ('score' in result) { } else { // 分数结果其实还是个胜率, 不过需要 * 100 - const win_rate = (result.score * 100 / round).toFixed(2); + const win_rate = (result.score * 10000 / round).toFixed(2); let output_str = `分数:|${win_rate}%|(${round}轮)`; if (round > 1000) { // 把所有要找的数据拿出来 @@ -195,7 +195,7 @@ async function main() { // const result = await fight(names); // const result = await md5_module.run_any(names, 50000); // console.log(`赢家:|${result.source_plr}|`); - const result = await wrap_any(names, 1000); + const result = await wrap_any(names, 10000); console.log(result); }