mirror of
https://github.com/d0zingcat/rime_wanxiang.git
synced 2026-05-13 23:16:54 +00:00
fix: 微调统计格式结构
This commit is contained in:
@@ -717886,7 +717886,7 @@ sort: by_weight
|
||||
洗碗去 xǐ wǎn qù 68
|
||||
西湾山 xī wān shān 92
|
||||
洗碗时 xǐ wǎn shí 76
|
||||
洗完手 xǐ wán shǒu 196
|
||||
洗完手 xǐ wán shǒu 496
|
||||
洗碗刷 xǐ wǎn shuā 110
|
||||
洗碗水 xǐ wǎn shuǐ 152
|
||||
矽烷烃 xī wán tīng 99
|
||||
@@ -720951,7 +720951,6 @@ sort: by_weight
|
||||
下血糖 xià xuè táng 68
|
||||
下雪天 xià xuě tiān 229
|
||||
下学校 xià xué xiào 145
|
||||
下血压 xià xuè yā 120
|
||||
夏雪宜 xià xuě yí 148
|
||||
下训练 xià xùn liàn 152
|
||||
下旬时 xià xún shí 217
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
-- 维度升级:1, 2, 3, 4, ≥5 字独立统计
|
||||
|
||||
local userdb = require("lib/userdb")
|
||||
local rime_api = rime_api
|
||||
|
||||
-- 1. 初始化数据库
|
||||
local db = userdb.LevelDb("lua/stats")
|
||||
|
||||
@@ -231,8 +229,8 @@ local function format_summary(title, data)
|
||||
"※ %s统计 · 效率仪表盘\n" ..
|
||||
"───────────────\n" ..
|
||||
"📊 综合数据\n" ..
|
||||
" 总字数:%d \t 上屏:%d\n" ..
|
||||
" 峰值速:%d \t 均速:%d\n" ..
|
||||
" 均速:%d\t 上屏:%d\n" ..
|
||||
" 峰速:%d\t 字数:%d\n" ..
|
||||
"───────────────\n" ..
|
||||
"⚡ 核心效率\n" ..
|
||||
" 平均编码:%.2f 键/字\n" ..
|
||||
@@ -243,13 +241,13 @@ local function format_summary(title, data)
|
||||
" [2] %3d%% %s\n" ..
|
||||
" [3] %3d%% %s\n" ..
|
||||
" [4] %3d%% %s\n" ..
|
||||
" [≥5] %2d%% %s\n" ..
|
||||
" [∞] %2d%% %s\n" ..
|
||||
"───────────────\n" ..
|
||||
"◉ 方案:%s\n" ..
|
||||
"◉ 平台:%s %s",
|
||||
title,
|
||||
math.floor(data.len), math.floor(data.cnt),
|
||||
math.floor(data.spd), math.floor(estimated_avg_spd),
|
||||
math.floor(estimated_avg_spd), math.floor(data.cnt),
|
||||
math.floor(data.spd), math.floor(data.len),
|
||||
avg_code, phrase_rate,
|
||||
math.floor(p1), draw_bar(p1),
|
||||
math.floor(p2), draw_bar(p2),
|
||||
|
||||
Reference in New Issue
Block a user