Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
842f65db
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,体验更适合开发者的 AI 搜索 >>
提交
842f65db
编写于
11月 11, 2016
作者:
A
Alessio Sergi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Setting IRQ plugin to off by default
上级
f7b22d34
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
9 deletion
+11
-9
NEWS
NEWS
+5
-1
glances/main.py
glances/main.py
+2
-2
glances/outputs/glances_curses.py
glances/outputs/glances_curses.py
+2
-2
glances/plugins/glances_irq.py
glances/plugins/glances_irq.py
+2
-4
未找到文件。
NEWS
浏览文件 @
842f65db
...
...
@@ -9,7 +9,11 @@ Deprecated:
* Deprecate Windows Curse UI: automaticaly open Web Browser for the standalone mode (issue #946)
Enhancements and news features:
Changes:
* IRQ plugin off by default. '--disable-irq' option replaced by '--enable-irq'.
Enhancements and new features:
* Add ZeroMQ exporter (issue #939)
* Add CouchDB exporter (issue #928)
...
...
glances/main.py
浏览文件 @
842f65db
...
...
@@ -117,8 +117,6 @@ Start the client browser (browser mode):\n\
dest
=
'disable_hddtemp'
,
help
=
'disable HD temperature module'
)
parser
.
add_argument
(
'--disable-ip'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_ip'
,
help
=
'disable IP module'
)
parser
.
add_argument
(
'--disable-irq'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_irq'
,
help
=
'disable IRQ module'
),
parser
.
add_argument
(
'--disable-load'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_load'
,
help
=
'disable load module'
)
parser
.
add_argument
(
'--disable-mem'
,
action
=
'store_true'
,
default
=
False
,
...
...
@@ -157,6 +155,8 @@ Start the client browser (browser mode):\n\
dest
=
'disable_bold'
,
help
=
'disable bold mode in the terminal'
)
parser
.
add_argument
(
'--disable-bg'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'disable_bg'
,
help
=
'disable background colors in the terminal'
)
parser
.
add_argument
(
'--enable-irq'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'enable_irq'
,
help
=
'enable IRQ module'
),
parser
.
add_argument
(
'--enable-process-extended'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'enable_process_extended'
,
help
=
'enable extended stats on top process'
)
# Export modules feature
...
...
glances/outputs/glances_curses.py
浏览文件 @
842f65db
...
...
@@ -73,7 +73,7 @@ class _GlancesCurses(object):
'M'
:
{
'switch'
:
'reset_minmax_tag'
},
'n'
:
{
'switch'
:
'disable_network'
},
'P'
:
{
'switch'
:
'disable_ports'
},
'Q'
:
{
'switch'
:
'
dis
able_irq'
},
'Q'
:
{
'switch'
:
'
en
able_irq'
},
'r'
:
{
'switch'
:
'reset_history_tag'
},
'R'
:
{
'switch'
:
'disable_raid'
},
's'
:
{
'switch'
:
'disable_sensors'
},
...
...
@@ -673,7 +673,7 @@ class _GlancesCurses(object):
self
.
args
.
disable_ports
and
self
.
args
.
disable_diskio
and
self
.
args
.
disable_fs
and
self
.
args
.
dis
able_irq
and
self
.
args
.
en
able_irq
and
self
.
args
.
disable_folders
and
self
.
args
.
disable_raid
and
self
.
args
.
disable_sensors
)
and
not
self
.
args
.
disable_left_sidebar
:
...
...
glances/plugins/glances_irq.py
浏览文件 @
842f65db
...
...
@@ -90,11 +90,9 @@ class Plugin(GlancesPlugin):
# Init the return message
ret
=
[]
if
not
LINUX
:
# only available on GNU/Linux
return
ret
# Only available on GNU/Linux
# Only process if stats exist and display plugin enable...
if
not
self
.
stats
or
self
.
is_disable
()
:
if
not
LINUX
or
not
self
.
stats
or
not
self
.
args
.
enable_irq
:
return
ret
if
max_width
is
not
None
and
max_width
>=
23
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录