From fdd5e033224c6cf8fabffae9407846045b73bd42 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 10 May 2024 19:36:48 +0800 Subject: [PATCH] ennnn --- ica-rs/plugins/md5/md5-api.js | 2 +- ica-rs/plugins/md5/md5-api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/plugins/md5/md5-api.js b/ica-rs/plugins/md5/md5-api.js index cc36b12..b8ebdc3 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 / round * 100).toFixed(2); + win_rate_2 = (result.score * 100 / round).toFixed(2); output_str_2 = "\u5206\u6570:|".concat(win_rate_2, "%|(").concat(round, "\u8F6E)"); if (round > 1000) { output_datas_2 = []; diff --git a/ica-rs/plugins/md5/md5-api.ts b/ica-rs/plugins/md5/md5-api.ts index cb2d9f9..1e7bc5b 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 / round * 100).toFixed(2); + const win_rate = (result.score * 100 / round).toFixed(2); let output_str = `分数:|${win_rate}%|(${round}轮)`; if (round > 1000) { // 把所有要找的数据拿出来