Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
e8ccb644
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e8ccb644
编写于
12月 22, 2016
作者:
A
Alessio Sergi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some minor fixes and misspelling
上级
904e0f1f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
10 deletion
+9
-10
conf/glances.conf
conf/glances.conf
+5
-5
glances/outputs/glances_curses.py
glances/outputs/glances_curses.py
+3
-4
glances/plugins/glances_wifi.py
glances/plugins/glances_wifi.py
+1
-1
未找到文件。
conf/glances.conf
浏览文件 @
e8ccb644
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
##############################################################################
##############################################################################
[
global
]
[
global
]
# Does Glances should check if a newer version is available on Py
pi
?
# Does Glances should check if a newer version is available on Py
PI
?
check_update
=
true
check_update
=
true
# History size (maximum number of values)
# History size (maximum number of values)
# Default is 28800: 1 day with 1 point every 3 seconds (default refresh time)
# Default is 28800: 1 day with 1 point every 3 seconds (default refresh time)
...
@@ -48,12 +48,12 @@ steal_warning=70
...
@@ -48,12 +48,12 @@ steal_warning=70
steal_critical
=
90
steal_critical
=
90
#steal_log=True
#steal_log=True
# I/O wait percentage should be lower than 1/# (of CPU cores)
# I/O wait percentage should be lower than 1/# (of CPU cores)
# Le
t commented for
default config (1/#-20% / 1/#-10% / 1/#)
# Le
ave commented to just use the
default config (1/#-20% / 1/#-10% / 1/#)
#iowait_careful=30
#iowait_careful=30
#iowait_warning=40
#iowait_warning=40
#iowait_critical=50
#iowait_critical=50
# Context switch limit (core / second)
# Context switch limit (core / second)
# Le
t commented for
default config (critical is 56000/# (of CPU core))
# Le
ave commented to just use the
default config (critical is 56000/# (of CPU core))
#ctx_switches_careful=10000
#ctx_switches_careful=10000
#ctx_switches_warning=12000
#ctx_switches_warning=12000
#ctx_switches_critical=14000
#ctx_switches_critical=14000
...
@@ -211,7 +211,7 @@ mem_critical=90
...
@@ -211,7 +211,7 @@ mem_critical=90
# Ports scanner plugin configuration
# Ports scanner plugin configuration
# Interval in second between two scans
# Interval in second between two scans
refresh
=
30
refresh
=
30
# Set the default timeout (in second) for a scan (can be overwrit
e
in the scan list)
# Set the default timeout (in second) for a scan (can be overwrit
ten
in the scan list)
timeout
=
3
timeout
=
3
# If port_default_gateway is True, add the default gateway on top of the scan list
# If port_default_gateway is True, add the default gateway on top of the scan list
port_default_gateway
=
True
port_default_gateway
=
True
...
@@ -365,7 +365,7 @@ prefix=G
...
@@ -365,7 +365,7 @@ prefix=G
# * regex: Regular expression to filter the process(es)
# * regex: Regular expression to filter the process(es)
# * refresh: The AMP is executed every refresh seconds
# * refresh: The AMP is executed every refresh seconds
# * one_line: (optional) Force (if true) the AMP to be displayed in one line
# * one_line: (optional) Force (if true) the AMP to be displayed in one line
*
*
command
: (
optional
)
command
to
execute
when
the
process
is
detected
(
thk
to
the
regex
)
#
* command: (optional) command to execute when the process is detected (thk to the regex)
# * countmin: (optional) minimal number of processes
# * countmin: (optional) minimal number of processes
# A warning will be displayed if number of process < count
# A warning will be displayed if number of process < count
# * countmax: (optional) maximum number of processes
# * countmax: (optional) maximum number of processes
...
...
glances/outputs/glances_curses.py
浏览文件 @
e8ccb644
...
@@ -775,12 +775,11 @@ class _GlancesCurses(object):
...
@@ -775,12 +775,11 @@ class _GlancesCurses(object):
# Only in standalone mode (cs_status is None)
# Only in standalone mode (cs_status is None)
if
self
.
edit_filter
and
cs_status
is
None
:
if
self
.
edit_filter
and
cs_status
is
None
:
new_filter
=
self
.
display_popup
(
new_filter
=
self
.
display_popup
(
'Process filter pattern:
\n
'
+
'Process filter pattern:
\n\n
'
+
'
\n
'
+
'Examples:
\n
'
+
'Examples:
\n
'
+
'- python
\n
'
+
'- python
\n
'
+
'- .*python.*
\n
'
+
'- .*python.*
\n
'
+
'- \/usr\/lib.*'
+
'- \/usr\/lib.*
\n
'
+
'- name:.*nautilus.*
\n
'
+
'- name:.*nautilus.*
\n
'
+
'- cmdline:.*glances.*
\n
'
+
'- cmdline:.*glances.*
\n
'
+
'- username:nicolargo
\n
'
+
'- username:nicolargo
\n
'
+
...
@@ -788,7 +787,7 @@ class _GlancesCurses(object):
...
@@ -788,7 +787,7 @@ class _GlancesCurses(object):
is_input
=
True
,
is_input
=
True
,
input_value
=
glances_processes
.
process_filter_input
)
input_value
=
glances_processes
.
process_filter_input
)
glances_processes
.
process_filter
=
new_filter
glances_processes
.
process_filter
=
new_filter
elif
self
.
edit_filter
and
cs_status
!=
'None'
:
elif
self
.
edit_filter
and
cs_status
is
not
None
:
self
.
display_popup
(
'Process filter only available in standalone mode'
)
self
.
display_popup
(
'Process filter only available in standalone mode'
)
self
.
edit_filter
=
False
self
.
edit_filter
=
False
...
...
glances/plugins/glances_wifi.py
浏览文件 @
e8ccb644
...
@@ -30,7 +30,7 @@ import psutil
...
@@ -30,7 +30,7 @@ import psutil
try
:
try
:
from
wifi.scan
import
Cell
from
wifi.scan
import
Cell
from
wifi.exceptions
import
InterfaceError
from
wifi.exceptions
import
InterfaceError
except
ImportError
as
e
:
except
ImportError
:
logger
.
debug
(
"Wifi library not found. Glances cannot grab Wifi info."
)
logger
.
debug
(
"Wifi library not found. Glances cannot grab Wifi info."
)
wifi_tag
=
False
wifi_tag
=
False
else
:
else
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录