2020-06-20 14:07:32 +08:00
|
|
|
configfile="配置文件"
|
2020-06-14 23:05:17 +08:00
|
|
|
usage="使用方法: {0} [选项]\n\n选项:\n"
|
2020-06-20 13:26:35 +08:00
|
|
|
total="总计"
|
2020-06-14 23:05:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
[help]
|
|
|
|
paths="按顺序从以下位置优先读取配色方案、布局方案和配置文件:"
|
|
|
|
log="日志文件位于 {0}"
|
|
|
|
written="配置文件已写入 {0}"
|
|
|
|
|
|
|
|
|
|
|
|
[args]
|
|
|
|
help="显示当前内容。"
|
2020-06-20 13:26:35 +08:00
|
|
|
color="配色方案。"
|
|
|
|
scale="图形比例尺度,>0"
|
2020-06-14 23:05:17 +08:00
|
|
|
version="显示版本并退出。"
|
|
|
|
percpu="在 CPU 组件中显示每个 CPU。"
|
|
|
|
cpuavg="在 CPU 组件中平均 CPU。"
|
|
|
|
temp="显示华氏温度。"
|
|
|
|
statusbar="显示时间状态栏。"
|
|
|
|
rate="刷新频率。常见的时间单位皆可用。\"1m\" = 每分钟刷新。\"100ms\" = 每100毫秒刷新。"
|
|
|
|
layout="布局描述文件名。使用 \"-\" 连接。"
|
|
|
|
net="选择网卡。多个网卡用逗号分隔。使用 \"!\" 忽略指定网卡。"
|
|
|
|
export="在指定端口上启用指标输出。"
|
2020-06-20 13:26:35 +08:00
|
|
|
mbps="显示网速为 mbps。"
|
2020-06-14 23:05:17 +08:00
|
|
|
test="执行测试并返回成功或失败码。"
|
|
|
|
conffile="用于替代缺省参数的配置文件(必须是第一个参数)"
|
|
|
|
list="""
|
|
|
|
List <devices|layouts|colorschemes|paths|keys>
|
2020-06-20 13:26:35 +08:00
|
|
|
devices: 显示可用于过滤的设备名
|
|
|
|
layouts: 列出所有内置布局方案
|
|
|
|
colorschemes: 列出所有内置配色方案
|
|
|
|
paths: 列出配置文件的搜索路径
|
|
|
|
widgets: 所有可被用于布局的组件
|
|
|
|
keys: 显示所有热键。"""
|
|
|
|
write="将当前配置写入缺省配置文件。"
|
2020-06-19 08:51:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
[error]
|
|
|
|
configparse="failed to parse config file: {0}"
|
|
|
|
cliparse="parsing CLI args: {0}"
|
|
|
|
logsetup="failed to setup log file: {0}"
|
|
|
|
unknownopt="Unknown option \"{0}\"; try layouts, colorschemes, keys, paths, or devices\n"
|
|
|
|
writefail="Failed to write configuration file: {0}"
|
|
|
|
checklog="errors encountered; from {0}:"
|
|
|
|
metricsetup="error setting up {0} metrics: {1}"
|
|
|
|
nometrics="no metrics for {0} {0}"
|
|
|
|
fatalfetch="fatal error fetching {0} info: {1}"
|
|
|
|
recovfetch="recoverable error fetching {0} info; skipping {0}: {0}"
|
|
|
|
nodevfound="no usable {0} found"
|
|
|
|
setuperr="error setting up {0}: {1}"
|
|
|
|
|
|
|
|
|
|
|
|
[widget.label]
|
2020-06-20 13:26:35 +08:00
|
|
|
disk=" 磁盘使用率 "
|
|
|
|
cpu=" CPU 使用率 "
|
|
|
|
gauge=" 功率 "
|
|
|
|
battery=" 电池状态 "
|
|
|
|
batt=" 电池 "
|
|
|
|
temp=" 温度 "
|
|
|
|
net=" 网络使用率 "
|
|
|
|
netint=" 网络使用率: {0} "
|
|
|
|
mem=" 内存使用率 "
|
2020-06-19 08:51:01 +08:00
|
|
|
help="""
|
2020-06-20 13:26:35 +08:00
|
|
|
退出: q or <C-c>
|
|
|
|
|
|
|
|
进程导航:
|
|
|
|
- k 或 <Up>: 上一行
|
|
|
|
- j 或 <Down>: 下一行
|
|
|
|
- <C-u>: 上半页
|
|
|
|
- <C-d>: 下半页
|
|
|
|
- <C-b>: 上一页
|
|
|
|
- <C-f>: 下一页
|
|
|
|
- gg 或 <Home>: 到顶部
|
|
|
|
- G 或 <End>: 到底部
|
|
|
|
|
|
|
|
进程操作:
|
|
|
|
- <Tab>: 切换进程组
|
|
|
|
- dd: 发送信号 SIGTERM (15) 终止进程或进程组
|
|
|
|
- d3: 发送信号 SIGTERM (3) 终止进程或进程组
|
|
|
|
- d9: 发送信号 SIGTERM (9) 终止进程或进程组
|
|
|
|
|
|
|
|
进程排序:
|
2020-06-19 08:51:01 +08:00
|
|
|
- c: CPU
|
2020-06-20 13:26:35 +08:00
|
|
|
- m: 内存
|
|
|
|
- p: 进程标识
|
2020-06-19 08:51:01 +08:00
|
|
|
|
2020-06-20 13:26:35 +08:00
|
|
|
进程过滤:
|
|
|
|
- /: 开始编辑过滤器
|
|
|
|
- (编辑时):
|
|
|
|
- <Enter>: 保存过滤器
|
|
|
|
- <C-c> 或 <Escape>: 清除过滤器
|
2020-06-19 08:51:01 +08:00
|
|
|
|
2020-06-20 14:07:32 +08:00
|
|
|
CPU 和内存图形比例:
|
2020-06-20 13:26:35 +08:00
|
|
|
- h: 放大比例
|
|
|
|
- l: 缩小比例
|
2020-06-19 08:51:01 +08:00
|
|
|
|
2020-06-20 13:26:35 +08:00
|
|
|
网络:
|
|
|
|
- b: 在 mbps 和 每秒字节数 之间切换
|
2020-06-19 08:51:01 +08:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
[widget.net.err]
|
|
|
|
netactivity="failed to get network activity from gopsutil: {0}"
|
|
|
|
negvalrecv="error: negative value for recently received network data from gopsutil. recentBytesRecv: {0}"
|
|
|
|
negvalsent="error: negative value for recently sent network data from gopsutil. recentBytesSent: {0}"
|
|
|
|
|
|
|
|
|
|
|
|
[widget.disk]
|
2020-06-20 13:26:35 +08:00
|
|
|
disk="磁盘"
|
|
|
|
mount="文件系统"
|
|
|
|
used="已使用"
|
|
|
|
free="空闲"
|
2020-06-19 08:51:01 +08:00
|
|
|
rs="R/s"
|
|
|
|
ws="W/s"
|
|
|
|
|
|
|
|
|
|
|
|
[widget.proc]
|
2020-06-20 13:26:35 +08:00
|
|
|
filter=" 过滤器: "
|
|
|
|
label=" 进程 "
|
2020-06-19 08:51:01 +08:00
|
|
|
[widget.proc.header]
|
2020-06-20 13:26:35 +08:00
|
|
|
count="个数"
|
|
|
|
command="命令"
|
2020-06-19 08:51:01 +08:00
|
|
|
cpu="CPU%"
|
2020-06-20 13:26:35 +08:00
|
|
|
mem="内存%"
|
|
|
|
pid="进程标识"
|
2020-06-19 08:51:01 +08:00
|
|
|
[widget.proc.err]
|
|
|
|
count="failed to get CPU count from gopsutil: {0}"
|
|
|
|
retrieve="failed to retrieve processes: {0}"
|
|
|
|
ps="failed to execute 'ps' command: {0}"
|
|
|
|
gopsutil="failed to get processes from gopsutil: {0}"
|
|
|
|
pidconv="failed to convert PID to int: {0}. line: {1}"
|
|
|
|
cpuconv="failed to convert CPU usage to float: {0}. line: {1}"
|
|
|
|
memconv="failed to convert Mem usage to float: {0}. line: {1}"
|
|
|
|
getcmd="failed to get process command from gopsutil: {0}. psProc: {1}. i: {2}. pid: {3}"
|
|
|
|
cpupercent="failed to get process cpu usage from gopsutil: {0}. psProc: {1}. i: {2}. pid: {3}"
|
|
|
|
mempercent="failed to get process memeory usage from gopsutil: {0}. psProc: {1}. i: {2}. pid: {3}"
|